diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-01 09:25:18 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-01 09:25:18 +0000 |
commit | 995867c9d1e4701682433bd43406c27cdc59599d (patch) | |
tree | f89cd601b778efa8aff3a40b38a00c93be2a47cd /xml.c | |
parent | 7678e05d53f1d1ad206bd64311355cb4b87c7c25 (diff) | |
download | mandoc-995867c9d1e4701682433bd43406c27cdc59599d.tar.gz |
*** empty log message ***
Diffstat (limited to 'xml.c')
-rw-r--r-- | xml.c | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -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); |