From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Properly discard \m colour escapes.
Date: Sun, 18 Jul 2010 19:06:18 -0400 (EDT) [thread overview]
Message-ID: <201007182306.o6IN6I0H028533@krisdoz.my.domain> (raw)
Log Message:
-----------
Properly discard \m colour escapes. Noted by J.C. Roberts.
Modified Files:
--------------
mdocml:
TODO
out.c
Revision Data
-------------
Index: out.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/out.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -Lout.c -Lout.c -u -p -r1.18 -r1.19
--- out.c
+++ out.c
@@ -233,6 +233,22 @@ a2roffdeco(enum roffdeco *d, const char
break;
}
break;
+ case ('M'):
+ /* FALLTHROUGH */
+ case ('m'):
+ switch (wp[i++]) {
+ case ('('):
+ lim = 2;
+ break;
+ case ('['):
+ term = ']';
+ break;
+ default:
+ i--;
+ lim = 1;
+ break;
+ }
+ break;
case ('s'):
if ('+' == wp[i] || '-' == wp[i])
i++;
Index: TODO
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/TODO,v
retrieving revision 1.29
retrieving revision 1.30
diff -LTODO -LTODO -u -p -r1.29 -r1.30
--- TODO
+++ TODO
@@ -68,9 +68,6 @@
- have a blank `It' head for `Bl -tag' not puke
-- ignore horrendous m[] font colouring
- reported by J.C. Roberts
-
- prohibit `Nm' from having non-text HEAD children
(e.g., NetBSD mDNSShared/dns-sd.1)
(mdoc_html.c and mdoc_term.c `Nm' handlers can be slightly simplified)
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
reply other threads:[~2010-07-18 23:06 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=201007182306.o6IN6I0H028533@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).