aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-08-29 17:57:29 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-08-29 17:57:29 +0000
commite7fc400f1a08777772ca4bbf1b298034d9f695f6 (patch)
tree4402169d7f866caab20259c253d2ea0202ece120 /html.h
parent5bc2c395e0649c505c7343f2e520585eae301173 (diff)
downloadmandoc-e7fc400f1a08777772ca4bbf1b298034d9f695f6.tar.gz
mandoc-e7fc400f1a08777772ca4bbf1b298034d9f695f6.tar.zst
mandoc-e7fc400f1a08777772ca4bbf1b298034d9f695f6.zip
In the HTML formatter, assert(3) that no HTML nesting violation occurs.
Tested on the complete manual page trees of Version 7 AT&T UNIX, 4.4BSD-Lite2, POSIX-2013, OpenBSD 2.2 to 6.5 and -current, FreeBSD 10.0 to 12.0, NetBSD 6.1.5 to 8.1, DragonFly 3.8.2 to 5.6.1, and Linux 4.05 to 5.02.
Diffstat (limited to 'html.h')
-rw-r--r--html.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/html.h b/html.h
index 242a63a8..3f9b0231 100644
--- a/html.h
+++ b/html.h
@@ -1,4 +1,4 @@
-/* $Id: html.h,v 1.103 2019/04/30 15:53:00 schwarze Exp $ */
+/* $Id: html.h,v 1.104 2019/08/29 17:57:29 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2017, 2018, 2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -19,18 +19,14 @@
enum htmltag {
TAG_HTML,
TAG_HEAD,
- TAG_BODY,
TAG_META,
+ TAG_LINK,
+ TAG_STYLE,
TAG_TITLE,
+ TAG_BODY,
TAG_DIV,
TAG_IDIV,
TAG_SECTION,
- TAG_H1,
- TAG_H2,
- TAG_SPAN,
- TAG_LINK,
- TAG_BR,
- TAG_A,
TAG_TABLE,
TAG_TR,
TAG_TD,
@@ -40,15 +36,19 @@ enum htmltag {
TAG_DL,
TAG_DT,
TAG_DD,
+ TAG_H1,
+ TAG_H2,
TAG_P,
TAG_PRE,
- TAG_VAR,
- TAG_CITE,
+ TAG_A,
TAG_B,
- TAG_I,
+ TAG_CITE,
TAG_CODE,
+ TAG_I,
TAG_SMALL,
- TAG_STYLE,
+ TAG_SPAN,
+ TAG_VAR,
+ TAG_BR,
TAG_MATH,
TAG_MROW,
TAG_MI,