summaryrefslogtreecommitdiffstats
path: root/html.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-05-31 22:29:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-05-31 22:29:13 +0000
commit151c919ed8cc3ed826972bf9834c86d322c8ea2a (patch)
tree88cd0e892637ff83ebf37f93c1e552f8572604bb /html.h
parenta72385d7db78c4b91054f655c790402b70f79571 (diff)
downloadmandoc-151c919ed8cc3ed826972bf9834c86d322c8ea2a.tar.gz
Implement the roff \z escape sequence, intended to output the next
character without advancing the cursor position; implement it to simply skip the next character, as it will usually be overwritten. With this change, the pod2man(1) preamble user-defined string \*:, intended to render as a diaeresis or umlaut diacritic above the preceding character, is rendered in a slightly less ugly way, though still not correctly. It was rendered as "z.." and is now rendered as ".". Given that the definition of \*: uses elaborate manual \h positioning, there is little chance for mandoc(1) to ever render it correctly, but at least we can refrain from printing out a spurious "z", and we can make the \z do something semi-reasonable for easier cases. "just commit" kristaps@
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 7c95e2dc..2615060e 100644
--- a/html.h
+++ b/html.h
@@ -117,6 +117,7 @@ struct html {
#define HTML_PREKEEP (1 << 3)
#define HTML_NONOSPACE (1 << 4) /* never add spaces */
#define HTML_LITERAL (1 << 5) /* literal (e.g., <PRE>) context */
+#define HTML_SKIPCHAR (1 << 6) /* skip the next character */
struct tagq tags; /* stack of open tags */
struct rofftbl tbl; /* current table */
struct tag *tblt; /* current open table scope */