aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit94cd81895ea53a20400d13b0e9c2bcf756ed382b (patch)
tree50b3e1fee66e1d75b3a5657a0824cd0c83b8540c /html.h
parent5db55ac9e2491b9cdf973e2d4cb7ed9596b00566 (diff)
downloadmandoc-94cd81895ea53a20400d13b0e9c2bcf756ed382b.tar.gz
mandoc-94cd81895ea53a20400d13b0e9c2bcf756ed382b.tar.zst
mandoc-94cd81895ea53a20400d13b0e9c2bcf756ed382b.zip
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/html.h b/html.h
index 19532c49..a393ff62 100644
--- a/html.h
+++ b/html.h
@@ -1,4 +1,4 @@
-/* $Id: html.h,v 1.78 2017/01/19 16:59:30 schwarze Exp $ */
+/* $Id: html.h,v 1.79 2017/01/26 18:28:18 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -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 *);