From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id fb932240; for ; Sat, 29 Aug 2015 17:40:35 -0500 (EST) Date: Sat, 29 Aug 2015 17:40:35 -0500 (EST) Message-Id: <13158264967721708924.enqueue@fantadrom.bsd.lv> 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 escape sequences \, and \/ (italic X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Parse and ignore the escape sequences \, and \/ (italic corrections). Actually using these is very stupid because they are groff extensions and other roff(7) implementations typically print unintended characters at the places where they are used. Nevertheless, some manuals contain them, for example ocserv(8). Problem reported by Kurt Jaeger . Modified Files: -------------- mdocml: mandoc.c roff.7 Revision Data ------------- Index: roff.7 =================================================================== RCS file: /home/cvs/mdocml/mdocml/roff.7,v retrieving revision 1.73 retrieving revision 1.74 diff -Lroff.7 -Lroff.7 -u -p -r1.73 -r1.74 --- roff.7 +++ roff.7 @@ -1,7 +1,7 @@ .\" $Id$ .\" .\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons -.\" Copyright (c) 2010, 2011, 2013, 2014 Ingo Schwarze +.\" Copyright (c) 2010, 2011, 2013-2015 Ingo Schwarze .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above @@ -1839,9 +1839,15 @@ For short names, there are variants .No \e* Ns Ar c and .No \e*( Ns Ar cc . +.Ss \e, +Left italic correction (groff extension); ignored by +.Xr mandoc 1 . .Ss \e- Special character .Dq mathematical minus sign . +.Ss \e/ +Right italic correction (groff extension); ignored by +.Xr mandoc 1 . .Ss \e[ Ns Ar name ] .Sx Special Characters with names of arbitrary length, see Index: mandoc.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mandoc.c,v retrieving revision 1.92 retrieving revision 1.93 diff -Lmandoc.c -Lmandoc.c -u -p -r1.92 -r1.93 --- mandoc.c +++ mandoc.c @@ -95,6 +95,10 @@ mandoc_escape(const char **end, const ch case 'd': /* FALLTHROUGH */ case 'u': + /* FALLTHROUGH */ + case ',': + /* FALLTHROUGH */ + case '/': return(ESCAPE_IGNORE); /* -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv