summaryrefslogtreecommitdiffstats
path: root/xml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-01 09:25:18 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-01 09:25:18 +0000
commit995867c9d1e4701682433bd43406c27cdc59599d (patch)
treef89cd601b778efa8aff3a40b38a00c93be2a47cd /xml.c
parent7678e05d53f1d1ad206bd64311355cb4b87c7c25 (diff)
downloadmandoc-995867c9d1e4701682433bd43406c27cdc59599d.tar.gz
*** empty log message ***
Diffstat (limited to 'xml.c')
-rw-r--r--xml.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/xml.c b/xml.c
index 87a26b8d..858ebcc4 100644
--- a/xml.c
+++ b/xml.c
@@ -40,7 +40,8 @@ enum md_tok {
MD_BLKOUT,
MD_IN,
MD_OUT,
- MD_TEXT
+ MD_TEXT,
+ MD_OVERRIDE
};
struct md_xml {
@@ -329,8 +330,19 @@ rofftail(void *arg)
static int
roffspecial(void *arg, int tok)
{
+ struct md_xml *p;
+
+ assert(arg);
+ p = (struct md_xml *)arg;
+
+ switch (tok) {
+ case (ROFF_Ns):
+ p->last = MD_OVERRIDE;
+ break;
+ default:
+ break;
+ }
- /* FIXME */
return(1);
}
@@ -481,6 +493,8 @@ roffout(void *arg, int tok)
assert(arg);
p = (struct md_xml *)arg;
+ /* Continue with a regular out token. */
+
if (0 == p->pos && ! mbuf_indent(p))
return(0);