diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-22 11:15:16 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-22 11:15:16 +0000 |
commit | 544a766eb06bf03fc9ae275a02575c4dc54c8d32 (patch) | |
tree | 5094d1a10b9a3243e5713b32cd76f383eb2dd04d /html.c | |
parent | 89a32203ddc128f3448f944bcb1a47eac62514d9 (diff) | |
download | mandoc-544a766eb06bf03fc9ae275a02575c4dc54c8d32.tar.gz |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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\"?>"); } |