From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id rBPMjYZD027106 for ; Wed, 25 Dec 2013 17:45:34 -0500 (EST) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id rBPMjX0C005184; Wed, 25 Dec 2013 17:45:33 -0500 (EST) Date: Wed, 25 Dec 2013 17:45:33 -0500 (EST) Message-Id: <201312252245.rBPMjX0C005184@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Parse and ignore the roff(7) escape sequences \d (move half line X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 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