aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-03 16:18:02 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-03 16:18:02 +0000
commit17e67c5cb10de07302a0f0ad1a0da7af23788f98 (patch)
treedee86c854747e8118d7a902141e4e3b95f21b0f1 /mdoc_validate.c
parenta73ce50449b9ea611775c6c50b7fd42d08d80ae9 (diff)
downloadmandoc-17e67c5cb10de07302a0f0ad1a0da7af23788f98.tar.gz
mandoc-17e67c5cb10de07302a0f0ad1a0da7af23788f98.tar.zst
mandoc-17e67c5cb10de07302a0f0ad1a0da7af23788f98.zip
Render .br as <br/>, not as an empty <div>.
The element <br/> was already employed for many other purposes, so there is nothing wrong with using it. Also, it is safer because <br/> is permitted in phrasing content, whereas <div> is only allowed in flow content. This is the first part of the HTML syntax audit which i wanted to do for a long time. Reminded by a loosely related bug report from Mark Harris <mark dot hsj at gmail dot com>. Examples of where this caused HTML nesting syntax errors: * in man(7) code between .nf and .fi * in mdoc(7) code between .Bd -unfilled and .Ed * in mdoc(7) code between .Ql Xo and .Xc * in mdoc(7) code between .Rs and .Re
Diffstat (limited to 'mdoc_validate.c')
0 files changed, 0 insertions, 0 deletions