diff options
author | 2018-12-03 16:18:02 +0000 | |
---|---|---|
committer | 2018-12-03 16:18:02 +0000 | |
commit | 17e67c5cb10de07302a0f0ad1a0da7af23788f98 (patch) | |
tree | dee86c854747e8118d7a902141e4e3b95f21b0f1 /regress/mdoc/Ms | |
parent | a73ce50449b9ea611775c6c50b7fd42d08d80ae9 (diff) | |
download | mandoc-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 'regress/mdoc/Ms')
0 files changed, 0 insertions, 0 deletions