* mandoc: .RE causes a line break even if .RS is not open
@ 2018-08-18 17:33 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2018-08-18 17:33 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-18 17:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-18 17:33 mandoc: .RE causes a line break even if .RS is not open 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).