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 416aceac for ; Sat, 18 Aug 2018 12:33:08 -0500 (EST) Date: Sat, 18 Aug 2018 12:33:08 -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: .RE causes a line break even if .RS is not open X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-Id: Log Message: ----------- .RE causes a line break even if .RS is not open Modified Files: -------------- mandoc: man_macro.c Revision Data ------------- Index: man_macro.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/man_macro.c,v retrieving revision 1.130 retrieving revision 1.131 diff -Lman_macro.c -Lman_macro.c -u -p -r1.130 -r1.131 --- man_macro.c +++ man_macro.c @@ -246,6 +246,12 @@ blk_close(MACRO_PROT_ARGS) mandoc_msg(MANDOCERR_BLK_NOTOPEN, man->parse, line, ppos, roff_name[tok]); rew_scope(man, MAN_PP); + if (tok == MAN_RE) { + roff_elem_alloc(man, line, ppos, ROFF_br); + man->last->flags |= NODE_LINE | + NODE_VALID | NODE_ENDED; + man->next = ROFF_NEXT_SIBLING; + } return; } -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv