summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-04 18:29:38 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-04 18:29:38 +0000
commit5520315a8e50a0b8a702d84c2780faf9b0b187ec (patch)
tree3a7f74928b58e59c91e1515e095cc60f6cd1a41b /html.c
parent4d272ac9cfe2194029e9a2869ae951d40a91e8f4 (diff)
downloadmandoc-5520315a8e50a0b8a702d84c2780faf9b0b187ec.tar.gz
HTML syntax audit: render \p as <br/>, not as <div>.
It can occur anywhere, in particular in phrasing context.
Diffstat (limited to 'html.c')
-rw-r--r--html.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/html.c b/html.c
index 0b6aa189..42af6962 100644
--- a/html.c
+++ b/html.c
@@ -357,7 +357,6 @@ static int
print_encode(struct html *h, const char *p, const char *pend, int norecurse)
{
char numbuf[16];
- struct tag *t;
const char *seq;
size_t sz;
int c, len, breakline, nospace;
@@ -383,9 +382,7 @@ print_encode(struct html *h, const char *p, const char *pend, int norecurse)
if (breakline &&
(p >= pend || *p == ' ' || *p == ASCII_NBRSP)) {
- t = print_otag(h, TAG_DIV, "");
- print_text(h, "\\~");
- print_tagq(h, t);
+ print_otag(h, TAG_BR, "");
breakline = 0;
while (p < pend && (*p == ' ' || *p == ASCII_NBRSP))
p++;