summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-01 15:34:15 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-01 15:34:15 +0000
commit1d0badd450552ab18120742b98fe5d79645d4e2e (patch)
treec726fc293e7a43bfb329501c8e1eb978cb0411e9 /html.c
parentca6a9925d3ba6ddf9b4c245a4a1a271964774519 (diff)
downloadmandoc-1d0badd450552ab18120742b98fe5d79645d4e2e.tar.gz
Using putchar for single-character prints (noted by Joerg Sonnenberger).
Diffstat (limited to 'html.c')
-rw-r--r--html.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/html.c b/html.c
index 6eae9461..ce6c8032 100644
--- a/html.c
+++ b/html.c
@@ -361,16 +361,16 @@ print_otag(struct html *h, enum htmltag tag,
if ( ! (HTML_NOSPACE & h->flags))
if ( ! (HTML_CLRLINE & htmltags[tag].flags))
- printf(" ");
+ putchar(' ');
printf("<%s", htmltags[tag].name);
for (i = 0; i < sz; i++) {
printf(" %s=\"", htmlattrs[p[i].key]);
assert(p->val);
print_encode(h, p[i].val);
- printf("\"");
+ putchar('\"');
}
- printf(">");
+ putchar('>');
h->flags |= HTML_NOSPACE;
if (HTML_CLRLINE & htmltags[tag].flags)
@@ -391,7 +391,7 @@ print_ctag(struct html *h, enum htmltag tag)
if (HTML_CLRLINE & htmltags[tag].flags) {
h->flags |= HTML_NOSPACE;
h->flags |= HTML_NEWLINE;
- printf("\n");
+ putchar('\n');
} else
h->flags &= ~HTML_NEWLINE;
}
@@ -437,7 +437,7 @@ print_text(struct html *h, const char *p)
}
if ( ! (h->flags & HTML_NOSPACE))
- printf(" ");
+ putchar(' ');
h->flags &= ~HTML_NOSPACE;
h->flags &= ~HTML_NEWLINE;