diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-16 06:07:49 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-16 06:07:49 +0000 |
commit | 22c7cae08d6738c1f72bb810050cc88010d6d7b3 (patch) | |
tree | 848002b5d6bad8b9dfc6c6b385ec605f1da06942 /html.h | |
parent | 900b3f023f909b89d561c169c175f140bb304bdf (diff) | |
download | mandoc-22c7cae08d6738c1f72bb810050cc88010d6d7b3.tar.gz mandoc-22c7cae08d6738c1f72bb810050cc88010d6d7b3.tar.zst mandoc-22c7cae08d6738c1f72bb810050cc88010d6d7b3.zip |
Abstraction of -Thtml -man font setting (still experimental).
Diffstat (limited to 'html.h')
-rw-r--r-- | html.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.h,v 1.20 2009/11/14 12:04:59 kristaps Exp $ */ +/* $Id: html.h,v 1.21 2009/11/16 06:07:49 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -62,6 +62,13 @@ enum htmlattr { ATTR_MAX }; +enum htmlfont { + HTMLFONT_NONE = 0, + HTMLFONT_BOLD, + HTMLFONT_ITALIC, + HTMLFONT_MAX +}; + struct tag { struct tag *next; enum htmltag tag; @@ -112,12 +119,15 @@ struct html { char buf[BUFSIZ]; size_t buflen; struct tag *metaf; + enum htmlfont metal; + enum htmlfont metac; }; struct roffsu; void print_gen_doctype(struct html *); void print_gen_head(struct html *); +struct tag *print_ofont(struct html *, enum htmlfont); struct tag *print_otag(struct html *, enum htmltag, int, const struct htmlpair *); void print_tagq(struct html *, const struct tag *); |