aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit42bf2c72d14bba2a852d97de53916afef4f57269 (patch)
treecfbe24b13e0a1070865c10c64e9b2db6fd35930f /xml.c
parentc68b04faf73c1216350e7e0ad7502734a8cfc21c (diff)
downloadmandoc-42bf2c72d14bba2a852d97de53916afef4f57269.tar.gz
mandoc-42bf2c72d14bba2a852d97de53916afef4f57269.tar.zst
mandoc-42bf2c72d14bba2a852d97de53916afef4f57269.zip
Initial html outputs working.
Diffstat (limited to 'xml.c')
-rw-r--r--xml.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/xml.c b/xml.c
index 95c743bb..854c42b8 100644
--- a/xml.c
+++ b/xml.c
@@ -1,4 +1,4 @@
-/* $Id: xml.c,v 1.11 2008/12/03 19:21:58 kristaps Exp $ */
+/* $Id: xml.c,v 1.12 2008/12/03 21:27:56 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);