diff options
author | 2020-02-12 21:14:24 +0000 | |
---|---|---|
committer | 2020-02-12 21:14:24 +0000 | |
commit | d28d65723f52886d3015056b5a5efb79691e061b (patch) | |
tree | 9c38422628dcbc26ba9e9a38c6cb4b2d9e955e41 /usr.bin/mandoc/man_html.c | |
parent | do not propagate TMPDIR and override value from /etc/locate.rc in weekly (diff) | |
download | wireguard-openbsd-d28d65723f52886d3015056b5a5efb79691e061b.tar.xz wireguard-openbsd-d28d65723f52886d3015056b5a5efb79691e061b.zip |
In roff, a space character at the beginning of an input line requires
starting a new output line, and merely starting a new line of HTML
code isn't sufficient to achieve that. Solve this in the same way
as mdoc_html.c already does it, by printing a <br/> element.
Fixing a bug reported by Jason A. Donenfeld <Jason at zx2c4 dot com>
in the wg-quick(8) manual page on manpages.debian.org.
Diffstat (limited to 'usr.bin/mandoc/man_html.c')
-rw-r--r-- | usr.bin/mandoc/man_html.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/man_html.c b/usr.bin/mandoc/man_html.c index 5c51897edd5..4e66abb36de 100644 --- a/usr.bin/mandoc/man_html.c +++ b/usr.bin/mandoc/man_html.c @@ -1,7 +1,7 @@ -/* $OpenBSD: man_html.c,v 1.127 2019/04/30 15:52:42 schwarze Exp $ */ +/* $OpenBSD: man_html.c,v 1.128 2020/02/12 21:14:24 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2013-2015, 2017-2019 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2013-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -176,7 +176,7 @@ print_man_node(MAN_ARGS) } if (*n->string == ' ' && n->flags & NODE_LINE && (h->flags & HTML_NONEWLINE) == 0) - print_endline(h); + print_otag(h, TAG_BR, ""); else if (n->flags & NODE_DELIMC) h->flags |= HTML_NOSPACE; t = h->tag; |