summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-18 17:32:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-18 17:32:37 +0000
commitb93d3ab969bd1de6ebc4d77e72664e3ae480a2c7 (patch)
tree0d990ef2288bd41321a16a2c229ecd8973288538
parentc05e3017e053a2ceb66ff3c37e674e69577ce3e6 (diff)
downloadmandoc-b93d3ab969bd1de6ebc4d77e72664e3ae480a2c7.tar.gz
.RE causes a line break even if .RS is not open
-rw-r--r--man_macro.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/man_macro.c b/man_macro.c
index f40c08fc..66fd6c3e 100644
--- a/man_macro.c
+++ b/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;
}