From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (mandoc.bsd.lv [local]) by mandoc.bsd.lv (OpenSMTPD) with ESMTPA id 689d9a99 for ; Thu, 27 Feb 2020 17:28:43 -0500 (EST) Date: Thu, 27 Feb 2020 17:28:43 -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: The HTML standard does not allow self-closing syntax for X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: <11fef8c8b1d70b78@mandoc.bsd.lv> Log Message: ----------- The HTML standard does not allow self-closing syntax for non-void elements. Consequently, write an explicit end tag for 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 - * Copyright (c) 2011-2015, 2017-2019 Ingo Schwarze + * Copyright (c) 2011-2015, 2017-2020 Ingo Schwarze * * 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