summaryrefslogtreecommitdiffstats
path: root/html.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-01-26 18:28:18 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-01-26 18:28:18 +0000
commit235ae1a6a0c472285b2c9310fe2e27c03a80393d (patch)
treeb17150962d8d551f194058cfd460dfe4b358985b /html.h
parent596fca22f9c5c89fa592c0edf80c10f94529b3a6 (diff)
downloadmandoc-235ae1a6a0c472285b2c9310fe2e27c03a80393d.tar.gz
Fix -man -Thtml formatting after .nf (which has nothing to do
with "literal", by the way, it means "no fill"): * Use <pre> such that whitespace is preserved. * Preserve lines breaks. * For font alternating macros, avoid node recursion which required scary juggling with the fill state. Instead, simply print the text children directly. Missing feature first noticed by kristaps@ in 2011, the again reported by afresh1@ in 2016, and finally reported here: https://github.com/Debian/debiman/issues/21 , which i only found because of Shane Kerr's comment here: https://plus.google.com/110314300533310775053/posts/H1eaw9Yskoc
Diffstat (limited to 'html.h')
-rw-r--r--html.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/html.h b/html.h
index 16be4bf6..364da4ac 100644
--- a/html.h
+++ b/html.h
@@ -127,5 +127,6 @@ void print_tblclose(struct html *);
void print_tbl(struct html *, const struct tbl_span *);
void print_eqn(struct html *, const struct eqn *);
void print_paragraph(struct html *);
+void print_endline(struct html *);
int html_strlen(const char *);