From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id f9dffea5 for ; Tue, 4 Dec 2018 13:30:08 -0500 (EST) Date: Tue, 4 Dec 2018 13:30:08 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: HTML syntax audit: render \p as
, not as
. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-Id: <381dbb006bf624c5@fantadrom.bsd.lv> Log Message: ----------- HTML syntax audit: render \p as
, not as
. It can occur anywhere, in particular in phrasing context. Modified Files: -------------- mandoc: html.c Revision Data ------------- Index: html.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/html.c,v retrieving revision 1.244 retrieving revision 1.245 diff -Lhtml.c -Lhtml.c -u -p -r1.244 -r1.245 --- html.c +++ 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 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++; -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv