diff options
author | 2018-05-09 00:45:33 +0000 | |
---|---|---|
committer | 2018-05-09 00:45:33 +0000 | |
commit | 2e36b507955d0b84aa7d94510667ff7353018229 (patch) | |
tree | 0d45d91b2460d03d2da9d4a781e09abe8a630d91 /usr.bin/mandoc/html.h | |
parent | Eliminate the class=It-* attributes. (diff) | |
download | wireguard-openbsd-2e36b507955d0b84aa7d94510667ff7353018229.tar.xz wireguard-openbsd-2e36b507955d0b84aa7d94510667ff7353018229.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 'usr.bin/mandoc/html.h')
-rw-r--r-- | usr.bin/mandoc/html.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/html.h b/usr.bin/mandoc/html.h index b3a8b796461..d44224fe64c 100644 --- a/usr.bin/mandoc/html.h +++ b/usr.bin/mandoc/html.h @@ -1,4 +1,4 @@ -/* $OpenBSD: html.h,v 1.50 2018/04/13 16:27:14 schwarze Exp $ */ +/* $OpenBSD: html.h,v 1.51 2018/05/09 00:45:33 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, |