* mdocml: Parse and ignore the roff(7) escape sequences \d (move half line
@ 2013-12-25 22:45 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2013-12-25 22:45 UTC (permalink / raw)
To: source
Log Message:
-----------
Parse and ignore the roff(7) escape sequences \d (move half line down)
und \u (move half line up). Found by bentley@ in some DocBook crap.
Modified Files:
--------------
mdocml:
mandoc.c
Revision Data
-------------
Index: mandoc.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -Lmandoc.c -Lmandoc.c -u -p -r1.71 -r1.72
--- mandoc.c
+++ mandoc.c
@@ -102,6 +102,14 @@ mandoc_escape(const char const **end, co
break;
/*
+ * Escapes taking no arguments at all.
+ */
+ case ('d'):
+ /* FALLTHROUGH */
+ case ('u'):
+ return(ESCAPE_IGNORE);
+
+ /*
* The \z escape is supposed to output the following
* character without advancing the cursor position.
* Since we are mostly dealing with terminal mode,
--
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:[~2013-12-25 22:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-25 22:45 mdocml: Parse and ignore the roff(7) escape sequences \d (move half line schwarze
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).