diff options
author | 2017-01-18 19:22:18 +0000 | |
---|---|---|
committer | 2017-01-18 19:22:18 +0000 | |
commit | b1eea027fda2960a3a09a9f7763d2d99f4759c41 (patch) | |
tree | 6b52e204dec16fc99af1c480b32c4ae8b096e6c2 /usr.bin/mandoc/html.h | |
parent | Use LIST_FOREACH to traverse icmp6_mtudisc_callbacks. Fix whitespaces. (diff) | |
download | wireguard-openbsd-b1eea027fda2960a3a09a9f7763d2d99f4759c41.tar.xz wireguard-openbsd-b1eea027fda2960a3a09a9f7763d2d99f4759c41.zip |
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 'usr.bin/mandoc/html.h')
-rw-r--r-- | usr.bin/mandoc/html.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/mandoc/html.h b/usr.bin/mandoc/html.h index e47fe83f5f8..8dbeab6dcc0 100644 --- a/usr.bin/mandoc/html.h +++ b/usr.bin/mandoc/html.h @@ -1,4 +1,4 @@ -/* $OpenBSD: html.h,v 1.37 2017/01/17 15:32:39 schwarze Exp $ */ +/* $OpenBSD: html.h,v 1.38 2017/01/18 19:22:18 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -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 */ |