=================================================================== RCS file: /cvs/mandoc/man_html.c,v retrieving revision 1.139 retrieving revision 1.142 diff -u -p -r1.139 -r1.142 --- mandoc/man_html.c 2017/05/05 02:06:19 1.139 +++ mandoc/man_html.c 2017/05/09 14:10:01 1.142 @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.139 2017/05/05 02:06:19 schwarze Exp $ */ +/* $Id: man_html.c,v 1.142 2017/05/09 14:10:01 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2013, 2014, 2015, 2017 Ingo Schwarze @@ -69,7 +69,6 @@ static int man_ign_pre(MAN_ARGS); static int man_in_pre(MAN_ARGS); static void man_root_post(MAN_ARGS); static void man_root_pre(MAN_ARGS); -static int man_sp_pre(MAN_ARGS); static const struct htmlman __mans[MAN_MAX - MAN_TH] = { { NULL, NULL }, /* TH */ @@ -92,7 +91,6 @@ static const struct htmlman __mans[MAN_MAX - MAN_TH] = { man_I_pre, NULL }, /* I */ { man_alt_pre, NULL }, /* IR */ { man_alt_pre, NULL }, /* RI */ - { man_sp_pre, NULL }, /* sp */ { NULL, NULL }, /* nf */ { NULL, NULL }, /* fi */ { NULL, NULL }, /* RE */ @@ -107,7 +105,6 @@ static const struct htmlman __mans[MAN_MAX - MAN_TH] = { NULL, NULL }, /* EE */ { man_UR_pre, NULL }, /* UR */ { NULL, NULL }, /* UE */ - { man_ign_pre, NULL }, /* ll */ }; static const struct htmlman *const mans = __mans - MAN_TH; @@ -254,7 +251,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; @@ -305,6 +303,7 @@ print_man_node(MAN_ARGS) t = h->tag; if (n->tok < ROFF_MAX) { roff_html_pre(h, n); + child = 0; break; } @@ -412,25 +411,6 @@ man_root_post(MAN_ARGS) if (man->os) print_text(h, man->os); print_tagq(h, t); -} - - -static int -man_sp_pre(MAN_ARGS) -{ - struct roffsu su; - - SCALE_VS_INIT(&su, 1); - if (NULL != (n = n->child)) - if ( ! a2roffsu(n->string, &su, SCALE_VS)) - su.scale = 1.0; - - print_otag(h, TAG_DIV, "suh", &su); - - /* So the div isn't empty: */ - print_text(h, "\\~"); - - return 0; } static int