aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-22 11:15:16 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-22 11:15:16 +0000
commit5e8dea30d01017a3651dedc1f6eda3d2b1e6f8d1 (patch)
treec8b375d34bff877a170de8f810c1516d101a37e3 /html.c
parenta227976c4a6d61ca51f3b2ae7f15ee46a39ac235 (diff)
downloadmandoc-5e8dea30d01017a3651dedc1f6eda3d2b1e6f8d1.tar.gz
mandoc-5e8dea30d01017a3651dedc1f6eda3d2b1e6f8d1.tar.zst
mandoc-5e8dea30d01017a3651dedc1f6eda3d2b1e6f8d1.zip
Implement reference-counted version of original union mdoc_data. This
simplifies clean-up and allows for more types without extra hassle. Also made in-line literal types in -T[x]html use CODE instead of SPAN to match how literal blocks use PRE.
Diffstat (limited to 'html.c')
-rw-r--r--html.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/html.c b/html.c
index 41fb81d7..d99bd58f 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.120 2010/12/20 13:07:55 kristaps Exp $ */
+/* $Id: html.c,v 1.121 2010/12/22 11:15:16 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -73,6 +73,7 @@ static const struct htmldata htmltags[TAG_MAX] = {
{"b", 0 }, /* TAG_B */
{"i", 0 }, /* TAG_I */
{"u", 0 }, /* TAG_U */
+ {"code", 0 }, /* TAG_CODE */
};
static const char *const htmlfonts[HTMLFONT_MAX] = {
@@ -486,7 +487,7 @@ print_xmltype(struct html *h)
{
if (HTML_XHTML_1_0_STRICT == h->type)
- printf("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
+ puts("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
}