source@mandoc.bsd.lv
 help / color / Atom feed
* mandoc: The HTML standard does not allow self-closing syntax for 
@ 2020-02-27 22:28 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2020-02-27 22:28 UTC (permalink / raw)
  To: source

Log Message:
-----------
The HTML standard does not allow self-closing syntax for non-void elements.
Consequently, write an explicit end tag for <mark> elements.

Modified Files:
--------------
    mandoc:
        html.c
        mdoc_html.c

Revision Data
-------------
Index: html.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/html.c,v
retrieving revision 1.262
retrieving revision 1.263
diff -Lhtml.c -Lhtml.c -u -p -r1.262 -r1.263
--- html.c
+++ html.c
@@ -1,7 +1,7 @@
 /*	$Id$ */
 /*
  * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
- * Copyright (c) 2011-2015, 2017-2019 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2011-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -88,7 +88,7 @@ static	const struct htmldata htmltags[TA
 	{"span",	HTML_INPHRASE | HTML_TOPHRASE},
 	{"var",		HTML_INPHRASE | HTML_TOPHRASE},
 	{"br",		HTML_INPHRASE | HTML_NOSTACK | HTML_NLALL},
-	{"mark",	HTML_INPHRASE | HTML_NOSTACK },
+	{"mark",	HTML_INPHRASE },
 	{"math",	HTML_INPHRASE | HTML_NLALL | HTML_INDENT},
 	{"mrow",	0},
 	{"mi",		0},
Index: mdoc_html.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/mdoc_html.c,v
retrieving revision 1.334
retrieving revision 1.335
diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.334 -r1.335
--- mdoc_html.c
+++ mdoc_html.c
@@ -731,7 +731,7 @@ mdoc_tg_pre(MDOC_ARGS)
 	char	*id;
 
 	if ((id = html_make_id(n, 1)) != NULL)
-		print_otag(h, TAG_MARK, "i", id);
+		print_tagq(h, print_otag(h, TAG_MARK, "i", id));
 	return 0;
 }
 
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

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

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-27 22:28 mandoc: The HTML standard does not allow self-closing syntax for schwarze

source@mandoc.bsd.lv

Archives are clonable: git clone --mirror http://inbox.vuxu.org/mandoc-source

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.source


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git