summaryrefslogtreecommitdiffstats
path: root/html.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-01-18 19:22:21 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-01-18 19:22:21 +0000
commit9e41e48013edafc23cf31a38f2c00d094afdc4a1 (patch)
tree46d99624533b6531d4696efc29d2d01846e398dc /html.h
parente0ab88fccf99335566d214b53e13683b1391271c (diff)
downloadmandoc-9e41e48013edafc23cf31a38f2c00d094afdc4a1.tar.gz
Make HTML output more human readable by overhauling line break logic
around tags and by introducing some simple indentation. No change of HTML semantics intended.
Diffstat (limited to 'html.h')
-rw-r--r--html.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/html.h b/html.h
index 5f3e063d..b361d53e 100644
--- a/html.h
+++ b/html.h
@@ -95,6 +95,9 @@ struct html {
#define HTML_NOSPLIT (1 << 7) /* do not break line before .An */
#define HTML_SPLIT (1 << 8) /* break line before .An */
#define HTML_NONEWLINE (1 << 9) /* No line break in nofill mode. */
+#define HTML_NLDONE (1 << 10) /* Just started a new line of HTML. */
+ int indent; /* current output indentation level */
+ int noindent; /* indent disabled by <pre> */
struct tagq tags; /* stack of open tags */
struct rofftbl tbl; /* current table */
struct tag *tblt; /* current open table scope */