From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Accomodate for \f(Cx formatting.
Date: Sun, 6 Nov 2011 09:43:14 -0500 (EST) [thread overview]
Message-ID: <201111061443.pA6EhE7Q011223@krisdoz.my.domain> (raw)
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
reply other threads:[~2011-11-06 14:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201111061443.pA6EhE7Q011223@krisdoz.my.domain \
--to=kristaps@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).