From 5520315a8e50a0b8a702d84c2780faf9b0b187ec Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 4 Dec 2018 18:29:38 +0000 Subject: HTML syntax audit: render \p as
, not as
. It can occur anywhere, in particular in phrasing context. --- html.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'html.c') 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++; -- cgit