diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-18 19:22:21 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-18 19:22:21 +0000 |
commit | 9e41e48013edafc23cf31a38f2c00d094afdc4a1 (patch) | |
tree | 46d99624533b6531d4696efc29d2d01846e398dc /html.h | |
parent | e0ab88fccf99335566d214b53e13683b1391271c (diff) | |
download | mandoc-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |