summaryrefslogtreecommitdiffstats
path: root/xml.c
diff options
context:
space:
mode:
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);