summaryrefslogtreecommitdiffstats
path: root/xml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-03 21:27:56 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-03 21:27:56 +0000
commitf0f40906a39936e2d4cd4ddcb8bf4bdb33c2da08 (patch)
tree91c9b7d6bf79be33573f72401f26257e0c207d49 /xml.c
parentc67723cb5220a19191e6836e53b8d0a489c86797 (diff)
downloadmandoc-f0f40906a39936e2d4cd4ddcb8bf4bdb33c2da08.tar.gz
Initial html outputs working.
Diffstat (limited to 'xml.c')
-rw-r--r--xml.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/xml.c b/xml.c
index 8b4387be..23d9f1c9 100644
--- a/xml.c
+++ b/xml.c
@@ -37,6 +37,7 @@ static int xml_end(struct md_mbuf *,
const struct md_args *);
+/* ARGSUSED */
static int
xml_begin(struct md_mbuf *mbuf, const struct md_args *args)
{
@@ -54,6 +55,7 @@ xml_begin(struct md_mbuf *mbuf, const struct md_args *args)
}
+/* ARGSUSED */
static int
xml_end(struct md_mbuf *mbuf, const struct md_args *args)
{
@@ -67,6 +69,7 @@ xml_end(struct md_mbuf *mbuf, const struct md_args *args)
}
+/* ARGSUSED */
static ssize_t
xml_begintag(struct md_mbuf *mbuf, const struct md_args *args,
enum md_ns ns, int tok,
@@ -97,14 +100,14 @@ xml_begintag(struct md_mbuf *mbuf, const struct md_args *args,
break;
}
- if ( ! ml_nputs(mbuf, toknames[tok],
- strlen(toknames[tok]), &res))
+ if ( ! ml_puts(mbuf, toknames[tok], &res))
return(-1);
return((ssize_t)res);
}
+/* ARGSUSED */
static ssize_t
xml_endtag(struct md_mbuf *mbuf, const struct md_args *args,
enum md_ns ns, int tok)
@@ -134,8 +137,7 @@ xml_endtag(struct md_mbuf *mbuf, const struct md_args *args,
break;
}
- if ( ! ml_nputs(mbuf, toknames[tok],
- strlen(toknames[tok]), &res))
+ if ( ! ml_puts(mbuf, toknames[tok], &res))
return(-1);
return((ssize_t)res);