aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_macro.c
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
commita69bc577f294a785b78f0998ce3733c0f7442f09 (patch)
treeae92a70d04c008c05500f32efc4c3175889252b0 /man_macro.c
parent324a538720d53af5161980c79d67c83fdd3131fd (diff)
downloadmandoc-a69bc577f294a785b78f0998ce3733c0f7442f09.tar.gz
mandoc-a69bc577f294a785b78f0998ce3733c0f7442f09.tar.zst
mandoc-a69bc577f294a785b78f0998ce3733c0f7442f09.zip
.RE causes a line break even if .RS is not open
Diffstat (limited to 'man_macro.c')
-rw-r--r--man_macro.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/man_macro.c b/man_macro.c
index 91a26f35..15a4a9d6 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -1,4 +1,4 @@
-/* $Id: man_macro.c,v 1.130 2018/08/18 15:13:32 schwarze Exp $ */
+/* $Id: man_macro.c,v 1.131 2018/08/18 17:32:37 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2012-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;
}