=================================================================== RCS file: /cvs/mandoc/man_html.c,v retrieving revision 1.141 retrieving revision 1.144 diff -u -p -r1.141 -r1.144 --- mandoc/man_html.c 2017/05/05 15:17:32 1.141 +++ mandoc/man_html.c 2017/06/24 14:38:32 1.144 @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.141 2017/05/05 15:17:32 schwarze Exp $ */ +/* $Id: man_html.c,v 1.144 2017/06/24 14:38:32 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2013, 2014, 2015, 2017 Ingo Schwarze @@ -26,6 +26,7 @@ #include #include "mandoc_aux.h" +#include "mandoc.h" #include "roff.h" #include "man.h" #include "out.h" @@ -251,7 +252,8 @@ print_man_node(MAN_ARGS) case ROFFT_TEXT: if (fillmode(h, want_fillmode) == MAN_fi && want_fillmode == MAN_fi && - n->flags & NODE_LINE && *n->string == ' ') + n->flags & NODE_LINE && *n->string == ' ' && + (h->flags & HTML_NONEWLINE) == 0) print_otag(h, TAG_BR, ""); if (*n->string != '\0') break; @@ -357,13 +359,9 @@ fillmode(struct html *h, int want) static int a2width(const struct roff_node *n, struct roffsu *su) { - if (n->type != ROFFT_TEXT) return 0; - if (a2roffsu(n->string, su, SCALE_EN)) - return 1; - - return 0; + return a2roffsu(n->string, su, SCALE_EN) != NULL; } static void