diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-05 18:15:39 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-05 18:15:39 +0000 |
commit | c6e62f9888a3bce6f8b3f7a4ee028dbdfc01ab1f (patch) | |
tree | 5b001c4f9597be2aa5b561fe3d2bd93dae2735ec /html.c | |
parent | 917cc472b6d91e5bac0a2f3cdf26e113a64ecd45 (diff) | |
download | mandoc-c6e62f9888a3bce6f8b3f7a4ee028dbdfc01ab1f.tar.gz mandoc-c6e62f9888a3bce6f8b3f7a4ee028dbdfc01ab1f.tar.zst mandoc-c6e62f9888a3bce6f8b3f7a4ee028dbdfc01ab1f.zip |
Improve <table> syntax:
The <col> element can only appear inside <colgroup>, so use <colgroup>.
The <tbody> element is optional and useless, so don't use it.
Even if we would ever need <thead> or <tfoot>, <tbody> would still be
optional and useless; besides, we will likely never need <thead> or <tfoot>,
simply because our languages don't support such functionality.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.204 2017/01/29 14:02:41 schwarze Exp $ */ +/* $Id: html.c,v 1.205 2017/02/05 18:15:39 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011-2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -65,7 +65,7 @@ static const struct htmldata htmltags[TAG_MAX] = { {"br", HTML_NOSTACK | HTML_AUTOCLOSE | HTML_NLALL}, {"a", 0}, {"table", HTML_NLALL | HTML_INDENT}, - {"tbody", HTML_NLALL | HTML_INDENT}, + {"colgroup", HTML_NLALL | HTML_INDENT}, {"col", HTML_NOSTACK | HTML_AUTOCLOSE | HTML_NLALL}, {"tr", HTML_NLALL | HTML_INDENT}, {"td", HTML_NLAROUND}, |