]> git.cameronkatri.com Git - mandoc.git/blobdiff - man_html.c
In mdoc(7), don't mistreat negative .sp arguments as large positive ones.
[mandoc.git] / man_html.c
index a6a661fae321e0841b8fb9854b0ff4b990e81abb..11094150258771648e647daae4017bf32a93665a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: man_html.c,v 1.110 2015/01/30 22:04:44 schwarze Exp $ */
+/*     $Id: man_html.c,v 1.112 2015/03/03 21:11:34 schwarze Exp $ */
 /*
  * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -216,13 +216,15 @@ print_man_node(MAN_ARGS)
                        print_paragraph(h);
                        return;
                }
-               if (n->flags & MAN_LINE && (*n->string == ' ' || 
+               if (n->flags & MAN_LINE && (*n->string == ' ' ||
                    (n->prev != NULL && mh->fl & MANH_LITERAL &&
                     ! (h->flags & HTML_NONEWLINE))))
                        print_otag(h, TAG_BR, 0, NULL);
                print_text(h, n->string);
                return;
        case MAN_EQN:
+               if (n->flags & MAN_LINE)
+                       putchar('\n');
                print_eqn(h, n->eqn);
                break;
        case MAN_TBL: