diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-01-05 21:55:11 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-01-05 21:55:11 +0000 |
commit | 589d3fbc1807388fbe883742468701520d81c047 (patch) | |
tree | 0ab622cf22a39bbedaf23d8b1622768f3ab03239 /man_html.c | |
parent | 90df3f10ba3a29b23b62fdad06cdae3f2c051e4f (diff) | |
download | mandoc-589d3fbc1807388fbe883742468701520d81c047.tar.gz mandoc-589d3fbc1807388fbe883742468701520d81c047.tar.zst mandoc-589d3fbc1807388fbe883742468701520d81c047.zip |
In no-fill mode, avoid bogus blank lines in two situations:
1. After the last child; the parent will take care of the line break.
2. At the .YS macro; the end of the preceding .SY already broke the line.
Diffstat (limited to 'man_html.c')
-rw-r--r-- | man_html.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.164 2019/01/05 09:46:34 schwarze Exp $ */ +/* $Id: man_html.c,v 1.165 2019/01/05 21:55:11 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013-2015, 2017-2019 Ingo Schwarze <schwarze@openbsd.org> @@ -256,8 +256,8 @@ print_man_node(MAN_ARGS) /* This will automatically close out any font scope. */ print_stagq(h, t); - if (n->flags & NODE_NOFILL && - (n->next == NULL || n->next->flags & NODE_LINE)) { + if (n->flags & NODE_NOFILL && n->tok != MAN_YS && + (n->next != NULL && n->next->flags & NODE_LINE)) { /* In .nf = <pre>, print even empty lines. */ h->col++; print_endline(h); |