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 d0656f76 for ; Sat, 18 Aug 2018 17:06:13 -0500 (EST) Date: Sat, 18 Aug 2018 17:06:13 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: Bugfix: When a line ends with '\ \"', don't strip the trailing X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-Id: Log Message: ----------- Bugfix: When a line ends with '\ \"', don't strip the trailing space because that turned it into a bogus line continuation. Modified Files: -------------- mandoc: roff.c Revision Data ------------- Index: roff.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/roff.c,v retrieving revision 1.334 retrieving revision 1.335 diff -Lroff.c -Lroff.c -u -p -r1.334 -r1.335 --- roff.c +++ roff.c @@ -1214,7 +1214,8 @@ roff_res(struct roff *r, struct buf *buf /* Discard normal comments. */ - while (stesc > start && stesc[-1] == ' ') + while (stesc > start && stesc[-1] == ' ' && + (stesc == start + 1 || stesc[-2] != '\\')) stesc--; *stesc = '\0'; break; -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv