gbranden pushed a commit to branch master
in repository groff.
commit e72e7250b8d49aacf75d1f88ea644c2afa73140f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jul 13 07:47:16 2026 -0500
[grohtml]: Modernize XHTML document header.
* src/devices/grohtml/post-html.cpp (html_printer::writeHeadMetaStyle):
Revise XHTML output header to modernize it and work with contemporary
Firefox and Epiphany.
---
ChangeLog | 6 ++++++
src/devices/grohtml/post-html.cpp | 13 ++-----------
2 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2611d7936..7610ef165 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-07-13 G. Branden Robinson <[email protected]>
+
+ * src/devices/grohtml/post-html.cpp
+ (html_printer::writeHeadMetaStyle): Revise XHTML output header
+ to modernize it and work with contemporary Firefox and Epiphany.
+
2026-05-02 Luis Rivera <[email protected]>
* tmac/es.tmac: Revise Spanish localization for correctness.
diff --git a/src/devices/grohtml/post-html.cpp
b/src/devices/grohtml/post-html.cpp
index 7ad3365a7..977efbbf6 100644
--- a/src/devices/grohtml/post-html.cpp
+++ b/src/devices/grohtml/post-html.cpp
@@ -5682,27 +5682,18 @@ void html_printer::writeHeadMetaStyle (void)
else {
fputs("<?xml version=\"1.0\" encoding=\"", stdout);
fputs(static_cast<bool>(charset_encoding)
- ? "UTF-8" : "us-ascii", stdout);
+ ? "UTF-8" : "US-ASCII", stdout);
fputs("\"?>\n", stdout);
- fputs("<!DOCTYPE html PUBLIC \"-//W3C//"
- "DTD XHTML 1.1 plus MathML 2.0//EN\"\n", stdout);
- fputs(" \"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd\"\n",
- stdout);
- fputs(" [<!ENTITY mathml \"http://www.w3.org/1998/Math/"
- "MathML\">]>\n", stdout);
-
fputs("<html xmlns=\"http://www.w3.org/1999/xhtml\" "
"xml:lang=\"en\">\n", stdout);
fputs("<head>\n", stdout);
fputs("<meta name=\"generator\" "
"content=\"groff -Txhtml, see www.gnu.org\"/>\n", stdout);
fputs("<meta http-equiv=\"Content-Type\" "
- "content=\"text/html; charset=", stdout);
+ "content=\"application/xhtml+xml; charset=", stdout);
fputs(static_cast<bool>(charset_encoding)
? "UTF-8" : "US-ASCII", stdout);
fputs("\"/>\n", stdout);
- fputs("<meta name=\"Content-Style\" content=\"text/css\"/>\n",
- stdout);
fputs("<style type=\"text/css\">\n", stdout);
fputs(" .center { text-align: center }\n", stdout);
fputs(" .right { text-align: right }\n", stdout);
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit