diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-19 13:35:02 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-19 13:35:02 +0000 |
commit | 7e120ae54929e67f6c54d41ad0789f48600cfb3a (patch) | |
tree | 398a113210f60a40f5483368d7eedbb7d6018e75 /man_html.c | |
parent | 40d88740ee8b94c6e6a8385a424298b3cc6e7f52 (diff) | |
download | mandoc-7e120ae54929e67f6c54d41ad0789f48600cfb3a.tar.gz |
Start cleanup: trim useless HTML comments, <div> elements,
and CSS rules on the <html> and <body> levels.
Diffstat (limited to 'man_html.c')
-rw-r--r-- | man_html.c | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -148,24 +148,22 @@ html_man(void *arg, const struct roff_man *man) { struct mhtml mh; struct html *h; - struct tag *t, *tt; + struct tag *t; memset(&mh, 0, sizeof(mh)); h = (struct html *)arg; - if ( ! (HTML_FRAGMENT & h->oflags)) { + if ((h->oflags & HTML_FRAGMENT) == 0) { print_gen_decls(h); - t = print_otag(h, TAG_HTML, ""); - tt = print_otag(h, TAG_HEAD, ""); + print_otag(h, TAG_HTML, ""); + t = print_otag(h, TAG_HEAD, ""); print_man_head(&man->meta, man->first, &mh, h); - print_tagq(h, tt); + print_tagq(h, t); print_otag(h, TAG_BODY, ""); - print_otag(h, TAG_DIV, "c", "mandoc"); - } else - t = print_otag(h, TAG_DIV, "c", "mandoc"); + } print_man_nodelist(&man->meta, man->first, &mh, h); - print_tagq(h, t); + print_tagq(h, NULL); } static void |