=================================================================== RCS file: /cvs/mandoc/man_html.c,v retrieving revision 1.156 retrieving revision 1.157 diff -u -p -r1.156 -r1.157 --- mandoc/man_html.c 2018/08/18 02:08:27 1.156 +++ mandoc/man_html.c 2018/10/23 17:18:01 1.157 @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.156 2018/08/18 02:08:27 schwarze Exp $ */ +/* $Id: man_html.c,v 1.157 2018/10/23 17:18:01 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze @@ -264,7 +264,7 @@ print_man_node(MAN_ARGS) n->flags & NODE_LINE && *n->string == ' ' && (h->flags & HTML_NONEWLINE) == 0) print_otag(h, TAG_BR, ""); - if (*n->string != '\0') + if (want_fillmode == MAN_nf || *n->string != '\0') break; print_paragraph(h); return; @@ -338,8 +338,11 @@ print_man_node(MAN_ARGS) print_stagq(h, t); if (fillmode(h, 0) == MAN_nf && - n->next != NULL && n->next->flags & NODE_LINE) + n->next != NULL && n->next->flags & NODE_LINE) { + /* In .nf =
, print even empty lines. */
+		h->col++;
 		print_endline(h);
+	}
 }
 
 /*