diff options
author | 2012-05-28 13:00:51 +0000 | |
---|---|---|
committer | 2012-05-28 13:00:51 +0000 | |
commit | 7eac745d5e53634145ad9979215d1cc86e2cd04c (patch) | |
tree | ee63582d3b7f3781e8b6782be88005d0188f6b0b /usr.bin/mandoc/html.h | |
parent | I'm an idiot, make sure we call the right routines every time (diff) | |
download | wireguard-openbsd-7eac745d5e53634145ad9979215d1cc86e2cd04c.tar.xz wireguard-openbsd-7eac745d5e53634145ad9979215d1cc86e2cd04c.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.
Diffstat (limited to 'usr.bin/mandoc/html.h')
-rw-r--r-- | usr.bin/mandoc/html.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/html.h b/usr.bin/mandoc/html.h index bcc6d6f7c39..d3a4307c4c7 100644 --- a/usr.bin/mandoc/html.h +++ b/usr.bin/mandoc/html.h @@ -1,4 +1,4 @@ -/* $Id: html.h,v 1.18 2011/10/09 17:59:56 schwarze Exp $ */ +/* $Id: html.h,v 1.19 2012/05/28 13:00:51 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 */ |