version 1.270, 2020/04/20 13:07:24 |
version 1.273, 2021/06/02 17:51:38 |
Line 81 static const struct htmldata htmltags[TAG_MAX] = { |
|
Line 81 static const struct htmldata htmltags[TAG_MAX] = { |
|
{"h1", HTML_TOPHRASE | HTML_NLAROUND}, |
{"h1", HTML_TOPHRASE | HTML_NLAROUND}, |
{"h2", HTML_TOPHRASE | HTML_NLAROUND}, |
{"h2", HTML_TOPHRASE | HTML_NLAROUND}, |
{"p", HTML_TOPHRASE | HTML_NLAROUND | HTML_INDENT}, |
{"p", HTML_TOPHRASE | HTML_NLAROUND | HTML_INDENT}, |
{"pre", HTML_TOPHRASE | HTML_NLALL | HTML_NOINDENT}, |
{"pre", HTML_TOPHRASE | HTML_NLAROUND | HTML_NOINDENT}, |
{"a", HTML_INPHRASE | HTML_TOPHRASE}, |
{"a", HTML_INPHRASE | HTML_TOPHRASE}, |
{"b", HTML_INPHRASE | HTML_TOPHRASE}, |
{"b", HTML_INPHRASE | HTML_TOPHRASE}, |
{"cite", HTML_INPHRASE | HTML_TOPHRASE}, |
{"cite", HTML_INPHRASE | HTML_TOPHRASE}, |
Line 140 html_alloc(const struct manoutput *outopts) |
|
Line 140 html_alloc(const struct manoutput *outopts) |
|
h = mandoc_calloc(1, sizeof(struct html)); |
h = mandoc_calloc(1, sizeof(struct html)); |
|
|
h->tag = NULL; |
h->tag = NULL; |
|
h->metac = h->metal = ESCAPE_FONTROMAN; |
h->style = outopts->style; |
h->style = outopts->style; |
if ((h->base_man1 = outopts->man) == NULL) |
if ((h->base_man1 = outopts->man) == NULL) |
h->base_man2 = NULL; |
h->base_man2 = NULL; |
Line 195 print_gen_head(struct html *h) |
|
Line 196 print_gen_head(struct html *h) |
|
struct tag *t; |
struct tag *t; |
|
|
print_otag(h, TAG_META, "?", "charset", "utf-8"); |
print_otag(h, TAG_META, "?", "charset", "utf-8"); |
|
print_otag(h, TAG_META, "??", "name", "viewport", |
|
"content", "width=device-width, initial-scale=1.0"); |
if (h->style != NULL) { |
if (h->style != NULL) { |
print_otag(h, TAG_LINK, "?h??", "rel", "stylesheet", |
print_otag(h, TAG_LINK, "?h??", "rel", "stylesheet", |
h->style, "type", "text/css", "media", "all"); |
h->style, "type", "text/css", "media", "all"); |