summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mandoc.c9
-rw-r--r--roff.72
2 files changed, 10 insertions, 1 deletions
diff --git a/mandoc.c b/mandoc.c
index e9cfc632..b60691a2 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -369,8 +369,15 @@ out:
switch (gly) {
case (ESCAPE_FONT):
- if (1 != rlim)
+ /*
+ * Pretend that the constant-width font modes are the
+ * same as the regular font modes.
+ */
+ if (2 == rlim && 'C' == *rstart)
+ rstart++;
+ else if (1 != rlim)
break;
+
switch (*rstart) {
case ('3'):
/* FALLTHROUGH */
diff --git a/roff.7 b/roff.7
index d67e374e..b82020d0 100644
--- a/roff.7
+++ b/roff.7
@@ -143,6 +143,8 @@ escape followed by an indicator: B (bold), I (italic), R (regular), or P
(revert to previous mode).
A numerical representation 3, 2, or 1 (bold, italic, and regular,
respectively) may be used instead.
+The indicator or numerical representative may be preceded by C
+(constant-width), which is ignored.
.Pp
Examples:
.Bl -tag -width Ds -offset indent -compact