=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/html.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/mandoc/html.h 2009/12/22 23:58:00 1.3 +++ src/usr.bin/mandoc/html.h 2009/12/24 02:08:14 1.4 @@ -1,4 +1,4 @@ -/* $Id: html.h,v 1.3 2009/12/22 23:58:00 schwarze Exp $ */ +/* $Id: html.h,v 1.4 2009/12/24 02:08:14 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -62,6 +62,13 @@ ATTR_MAX }; +enum htmlfont { + HTMLFONT_NONE = 0, + HTMLFONT_BOLD, + HTMLFONT_ITALIC, + HTMLFONT_MAX +}; + struct tag { struct tag *next; enum htmltag tag; @@ -101,7 +108,6 @@ struct html { int flags; #define HTML_NOSPACE (1 << 0) -#define HTML_NEWLINE (1 << 1) #define HTML_IGNDELIM (1 << 2) struct tagq tags; struct ordq ords; @@ -112,12 +118,16 @@ char *style; 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 *);