summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man_html.c2
-rw-r--r--mdoc_html.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/man_html.c b/man_html.c
index f2aec32e..21c277f6 100644
--- a/man_html.c
+++ b/man_html.c
@@ -223,6 +223,8 @@ print_man_node(MAN_ARGS)
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:
diff --git a/mdoc_html.c b/mdoc_html.c
index bff01cf2..b89b8a0c 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -411,6 +411,8 @@ print_mdoc_node(MDOC_ARGS)
h->flags |= HTML_NOSPACE;
return;
case MDOC_EQN:
+ if (n->flags & MDOC_LINE)
+ putchar('\n');
print_eqn(h, n->eqn);
break;
case MDOC_TBL: