summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-03-03 21:09:25 +0000
committerschwarze <schwarze@openbsd.org>2015-03-03 21:09:25 +0000
commitad5b127c8ce04e9d3a83da5ba10c894faf795b60 (patch)
tree3980ceebcd6531a14a5a4c366068c94eb2d0ca7a /usr.bin/mandoc/man_html.c
parentexpand __unused to full __attribute__ for better portability (diff)
downloadwireguard-openbsd-ad5b127c8ce04e9d3a83da5ba10c894faf795b60.tar.xz
wireguard-openbsd-ad5b127c8ce04e9d3a83da5ba10c894faf795b60.zip
If an eqn(7) starts on a new input line, be sure to output whitespace
in front of it. Issue found by tedu@ in glOrtho(3). There are also cases of excessive whitespace before and after equations. This patch neither fixes them nor makes them worse.
Diffstat (limited to 'usr.bin/mandoc/man_html.c')
-rw-r--r--usr.bin/mandoc/man_html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/man_html.c b/usr.bin/mandoc/man_html.c
index ba03997a7e3..45031122cd0 100644
--- a/usr.bin/mandoc/man_html.c
+++ b/usr.bin/mandoc/man_html.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: man_html.c,v 1.64 2015/02/10 08:05:07 schwarze Exp $ */
+/* $OpenBSD: man_html.c,v 1.65 2015/03/03 21:09:25 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -221,6 +221,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: