source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: HTML syntax audit: render \p as <br/>, not as <div>.
@ 2018-12-04 18:30 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2018-12-04 18:30 UTC (permalink / raw)
  To: source

Log Message:
-----------
HTML syntax audit: render \p as <br/>, not as <div>.
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-04 18:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-04 18:30 mandoc: HTML syntax audit: render \p as <br/>, not as <div> schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).