diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-04 18:29:38 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-04 18:29:38 +0000 |
commit | 5520315a8e50a0b8a702d84c2780faf9b0b187ec (patch) | |
tree | 3a7f74928b58e59c91e1515e095cc60f6cd1a41b /html.c | |
parent | 4d272ac9cfe2194029e9a2869ae951d40a91e8f4 (diff) | |
download | mandoc-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.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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++; |