diff options
author | 2017-01-19 01:00:11 +0000 | |
---|---|---|
committer | 2017-01-19 01:00:11 +0000 | |
commit | d5746e4226ce4a117bbe8aada59baf8983960f0c (patch) | |
tree | 4dd80c0a0e56958be8f8e5fd80b7a162e06aafb9 /usr.bin/mandoc/mdoc_html.c | |
parent | reduce differences to amd64 (diff) | |
download | wireguard-openbsd-d5746e4226ce4a117bbe8aada59baf8983960f0c.tar.xz wireguard-openbsd-d5746e4226ce4a117bbe8aada59baf8983960f0c.zip |
Implement line breaking of the generated HTML code at space characters
in filled text. This does not affect HTML semantics, but makes the
HTML code even more humanly readable.
While here,
- collapse multiple consecutive space characters in filled text
- and insert a blank between style entries.
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index 2a1f06c4552..b1f8379f80f 100644 --- a/usr.bin/mandoc/mdoc_html.c +++ b/usr.bin/mandoc/mdoc_html.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_html.c,v 1.125 2017/01/18 19:22:18 schwarze Exp $ */ +/* $OpenBSD: mdoc_html.c,v 1.126 2017/01/19 01:00:11 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -382,8 +382,6 @@ print_mdoc_node(MDOC_ARGS) h->flags |= HTML_NOSPACE; return; case ROFFT_EQN: - if (n->flags & NODE_LINE) - putchar('\n'); print_eqn(h, n->eqn); break; case ROFFT_TBL: |