diff options
author | 2018-08-18 17:32:06 +0000 | |
---|---|---|
committer | 2018-08-18 17:32:06 +0000 | |
commit | bb7bc87589fec3264d152bc328c034500f4c48b3 (patch) | |
tree | 14d5c532009d1ae683b4ae9cdc397d9b620fdd57 | |
parent | .SY causes a one-column indentation even without any argument (diff) | |
download | wireguard-openbsd-bb7bc87589fec3264d152bc328c034500f4c48b3.tar.xz wireguard-openbsd-bb7bc87589fec3264d152bc328c034500f4c48b3.zip |
.RE causes a line break even if .RS is not open
-rw-r--r-- | usr.bin/mandoc/man_macro.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/mandoc/man_macro.c b/usr.bin/mandoc/man_macro.c index 7db973427a9..d3f4c66d955 100644 --- a/usr.bin/mandoc/man_macro.c +++ b/usr.bin/mandoc/man_macro.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_macro.c,v 1.92 2018/08/18 15:12:09 schwarze Exp $ */ +/* $OpenBSD: man_macro.c,v 1.93 2018/08/18 17:32:06 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2012-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -244,6 +244,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; } |