diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-12-19 09:22:36 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-12-19 09:22:36 +0000 |
commit | 19c8230805acc8b2e956650431373bd6b2b8880c (patch) | |
tree | 393280ab5820a014fdb05d3c20c9fe6117c5eb6f /usr.bin/mandoc/html.h | |
parent | fd60e1d6e4ce8dc83bf3d7baca2378ce83e4e57d (diff) |
Significant improvements to -Thtml by kristaps@:
Use less <DIV>, use more <H1>, <H2>, <P>, <BR>, <PRE>, <UL>, <OL>, <DL> etc.
Triggered by input from Will Backman.
Remove CSS2 note in mandoc.1, which is no longer true.
Diffstat (limited to 'usr.bin/mandoc/html.h')
-rw-r--r-- | usr.bin/mandoc/html.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/usr.bin/mandoc/html.h b/usr.bin/mandoc/html.h index e719721e61c..76850272d5a 100644 --- a/usr.bin/mandoc/html.h +++ b/usr.bin/mandoc/html.h @@ -1,4 +1,4 @@ -/* $Id: html.h,v 1.8 2010/07/25 18:05:54 schwarze Exp $ */ +/* $Id: html.h,v 1.9 2010/12/19 09:22:35 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -33,12 +33,19 @@ enum htmltag { TAG_BR, TAG_A, TAG_TABLE, + TAG_TBODY, TAG_COL, TAG_TR, TAG_TD, TAG_LI, TAG_UL, TAG_OL, + TAG_DL, + TAG_DT, + TAG_DD, + TAG_BLOCKQUOTE, + TAG_P, + TAG_PRE, TAG_MAX }; @@ -72,18 +79,9 @@ struct tag { enum htmltag tag; }; -struct ord { - struct ord *next; - const void *cookie; - int pos; -}; - struct tagq { struct tag *head; }; -struct ordq { - struct ord *head; -}; struct htmlpair { enum htmlattr key; @@ -115,7 +113,6 @@ struct html { #define HTML_PREKEEP (1 << 3) #define HTML_NONOSPACE (1 << 4) struct tagq tags; - struct ordq ords; void *symtab; char *base; char *base_man; |