diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2012-05-31 22:29:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2012-05-31 22:29:13 +0000 |
commit | 202b7e8f93f2d7b52432ac7b359f9df32d46f683 (patch) | |
tree | b0a7dae1cafcea499730ab4b4aa45acde007b42c /html.h | |
parent | f2888f84e20ae452a6382db6d6f0888b1da41ef5 (diff) | |
download | mandoc-202b7e8f93f2d7b52432ac7b359f9df32d46f683.tar.gz mandoc-202b7e8f93f2d7b52432ac7b359f9df32d46f683.tar.zst mandoc-202b7e8f93f2d7b52432ac7b359f9df32d46f683.zip |
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.h,v 1.47 2011/10/05 21:35:17 kristaps Exp $ */ +/* $Id: html.h,v 1.48 2012/05/31 22:29:13 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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 */ |