summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man.75
-rw-r--r--mandoc.c8
-rw-r--r--mdoc.75
-rw-r--r--out.c6
4 files changed, 18 insertions, 6 deletions
diff --git a/man.7 b/man.7
index 52a8917b..ef8b6de6 100644
--- a/man.7
+++ b/man.7
@@ -938,11 +938,12 @@ The
.Pq text filling colour ,
.Sq \ez
.Pq zero-length character ,
+.Sq \ew
+.Pq string length ,
and
.Sq \es
.Pq text size
-.Sx Text Decoration
-escapes are all discarded in mandoc.
+escape sequences are all discarded in mandoc.
.It
The
.Sq \ef
diff --git a/mandoc.c b/mandoc.c
index cd12a966..0be9c287 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -55,8 +55,6 @@ mandoc_special(char *p)
/* FALLTHROUGH */
case ('x'):
/* FALLTHROUGH */
- case ('w'):
- /* FALLTHROUGH */
case ('S'):
/* FALLTHROUGH */
case ('R'):
@@ -178,6 +176,12 @@ mandoc_special(char *p)
return(*p ? (int)(p - sv) : 0);
}
break;
+ case ('w'):
+ if ('\'' == *p++) {
+ term = '\'';
+ break;
+ }
+ /* FALLTHROUGH */
default:
len = 1;
p--;
diff --git a/mdoc.7 b/mdoc.7
index 1cc2a0bf..0e7b7dae 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -2846,11 +2846,12 @@ The
.Pq text filling colour ,
.Sq \ez
.Pq zero-length character ,
+.Sq \ew
+.Pq string length ,
and
.Sq \es
.Pq text size
-.Sx Text Decoration
-escapes are all discarded in mandoc.
+escape sequences are all discarded in mandoc.
.It
The
.Sq \ef
diff --git a/out.c b/out.c
index fa3049e0..7ec42e68 100644
--- a/out.c
+++ b/out.c
@@ -293,6 +293,12 @@ a2roffdeco(enum roffdeco *d, const char **word, size_t *sz)
} else
lim = 1;
break;
+ case ('w'):
+ if ('\'' == wp[i++]) {
+ term = '\'';
+ break;
+ }
+ /* FALLTHROUGH */
default:
*d = DECO_SSPECIAL;
i--;