gbranden pushed a commit to branch master
in repository groff.

commit dc22e6708694dd784e8c1b4d3829c110c56e0bf0
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jul 13 08:08:23 2026 -0500

    [grohtml]: Emit `&apos;` for U+0027.
    
    * src/devices/grohtml/post-html.cpp (get_html_entity): Emit `&apos;` for
      character code 0x27 regardless of `doctype`.  Its omission appears to
      have been a casualty of the IE4 era (Y2K).
---
 ChangeLog                         | 6 ++++++
 src/devices/grohtml/post-html.cpp | 1 +
 2 files changed, 7 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 7610ef165..b53938f33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-07-13  G. Branden Robinson <[email protected]>
+
+       * src/devices/grohtml/post-html.cpp (get_html_entity): Emit
+       `&apos;` for character code 0x27 regardless of `doctype`.  Its
+       omission appears to have been a casualty of the IE4 era (Y2K).
+
 2026-07-13  G. Branden Robinson <[email protected]>
 
        * src/devices/grohtml/post-html.cpp
diff --git a/src/devices/grohtml/post-html.cpp 
b/src/devices/grohtml/post-html.cpp
index 977efbbf6..efabbb1e9 100644
--- a/src/devices/grohtml/post-html.cpp
+++ b/src/devices/grohtml/post-html.cpp
@@ -4957,6 +4957,7 @@ static const char *get_html_entity (unsigned int code)
     switch (code) {
       case 0x0022: return "&quot;";
       case 0x0026: return "&amp;";
+      case 0x0027: return "&apos;";
       case 0x003C: return "&lt;";
       case 0x003E: return "&gt;";
       default: return 0;

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to