aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-05-09 00:46:10 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-05-09 00:46:10 +0000
commit8146f18c9d4d17026c0a4ae5ed85ea5907bf38fc (patch)
tree5b53a53e71f76bae69a7632586ac545c8d80b651 /html.h
parent35d4aaed89e7337b61f0213b253b9bee370ad2c3 (diff)
downloadmandoc-8146f18c9d4d17026c0a4ae5ed85ea5907bf38fc.tar.gz
mandoc-8146f18c9d4d17026c0a4ae5ed85ea5907bf38fc.tar.zst
mandoc-8146f18c9d4d17026c0a4ae5ed85ea5907bf38fc.zip
Fix a long-standing issue:
Some macros (Nd, Oo) can contain blocks but rendered as elements that can only contain phrasing content, resulting in invalid HTML nesting. Switch them to <div>. Also move the related "display: inline" style from the HTML to the CSS. Reminded during a conversation with John Gardner.
Diffstat (limited to 'html.h')
-rw-r--r--html.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/html.h b/html.h
index d128a76c..fc722694 100644
--- a/html.h
+++ b/html.h
@@ -1,4 +1,4 @@
-/* $Id: html.h,v 1.88 2018/04/13 16:28:07 schwarze Exp $ */
+/* $Id: html.h,v 1.89 2018/05/09 00:46:10 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -23,6 +23,7 @@ enum htmltag {
TAG_META,
TAG_TITLE,
TAG_DIV,
+ TAG_IDIV,
TAG_H1,
TAG_H2,
TAG_SPAN,