From fbcda63a2f8d075778d869bf8b5e39be061e27bb 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 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index db5c471b..ce90dfbd 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.244 2018/11/26 01:38:23 schwarze Exp $ */ +/* $Id: html.c,v 1.245 2018/12/04 18:29:38 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze @@ -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 v1.2.3