gbranden pushed a commit to branch master
in repository groff.

commit 48ff393dcfff520ac4c077fd43b2e097c25a4078
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jul 13 12:06:06 2026 -0500

    [grohtml]: Keep images work-withable.
    
    * src/devices/grohtml/post-html.cpp (html_printer::writeHeadMetaStyle):
      Don't truncate images to the newly limited maximum rendering width.
      The browser might downscale it, making it less legible, but should
      also keep it right-clickable or long-pressable or similar so that our
      less fuzzy pre-rasterized tbl(1) tables (courtesy of pre-grohtml(1))
      can be accessed and read at full size.
---
 ChangeLog                         | 10 ++++++++++
 src/devices/grohtml/post-html.cpp |  1 +
 2 files changed, 11 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index c0a76f2b6..0f581f05c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2026-07-13  G. Branden Robinson <[email protected]>
+
+       * src/devices/grohtml/post-html.cpp
+       (html_printer::writeHeadMetaStyle): Don't truncate images to the
+       newly limited maximum rendering width.  The browser might
+       downscale it, making it less legible, but should also keep it
+       right-clickable or long-pressable or similar so that our less
+       fuzzy pre-rasterized tbl(1) tables (courtesy of pre-grohtml(1))
+       can be accessed and read at full size.
+
 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 e6ddfbf29..3a8140a31 100644
--- a/src/devices/grohtml/post-html.cpp
+++ b/src/devices/grohtml/post-html.cpp
@@ -5713,6 +5713,7 @@ void html_printer::writeHeadMetaStyle (void)
   fputs("       h1      { text-align: center }\n", stdout);
   fputs("       body    { max-width: 80ch; margin-left: auto; "
        "margin-right: auto; padding: 1em; }\n", stdout);
+  fputs("       img     { max-width: 100%; height: auto; }\n", stdout);
   fputs("         .code-display { display: block; "
        "font-family: monospace; }\n", stdout);
   fputs("         .code-display p { margin-top: 0; margin-bottom: 0;"

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

Reply via email to