diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-11-06 14:43:14 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-11-06 14:43:14 +0000 |
commit | a3d2601486005576848664f22121fcd2881778e3 (patch) | |
tree | 9937bf2834cc70fa10f85a72d53749f356bd733f | |
parent | 4c433934a384d19bd29d0468c0f871275f8c7fd0 (diff) | |
download | mandoc-a3d2601486005576848664f22121fcd2881778e3.tar.gz |
Accomodate for \f(Cx formatting. Noted by Andreas Vogele, thanks!
-rw-r--r-- | mandoc.c | 9 | ||||
-rw-r--r-- | roff.7 | 2 |
2 files changed, 10 insertions, 1 deletions
@@ -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 */ @@ -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 |