From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id pA6EhEK6001087 for ; Sun, 6 Nov 2011 09:43:14 -0500 (EST) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id pA6EhE7Q011223; Sun, 6 Nov 2011 09:43:14 -0500 (EST) Date: Sun, 6 Nov 2011 09:43:14 -0500 (EST) Message-Id: <201111061443.pA6EhE7Q011223@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Accomodate for \f(Cx formatting. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Accomodate for \f(Cx formatting. Noted by Andreas Vogele, thanks! Modified Files: -------------- mdocml: mandoc.c roff.7 Revision Data ------------- Index: mandoc.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.c,v retrieving revision 1.60 retrieving revision 1.61 diff -Lmandoc.c -Lmandoc.c -u -p -r1.60 -r1.61 --- mandoc.c +++ 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 */ Index: roff.7 =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/roff.7,v retrieving revision 1.33 retrieving revision 1.34 diff -Lroff.7 -Lroff.7 -u -p -r1.33 -r1.34 --- roff.7 +++ roff.7 @@ -143,6 +143,8 @@ escape followed by an indicator: B (bold (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 -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv