* mdocml: Accomodate for \f(Cx formatting.
@ 2011-11-06 14:43 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-11-06 14:43 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-06 14:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-06 14:43 mdocml: Accomodate for \f(Cx formatting kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).