diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-01 15:34:15 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-01 15:34:15 +0000 |
commit | 1d0badd450552ab18120742b98fe5d79645d4e2e (patch) | |
tree | c726fc293e7a43bfb329501c8e1eb978cb0411e9 /html.c | |
parent | ca6a9925d3ba6ddf9b4c245a4a1a271964774519 (diff) | |
download | mandoc-1d0badd450552ab18120742b98fe5d79645d4e2e.tar.gz |
Using putchar for single-character prints (noted by Joerg Sonnenberger).
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |