From a682e72c03e253bc9f4604fa416feb7440828f79 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 6 Jan 2023 10:49:55 -0800 Subject: Add `code { hyphens: manual; }` to HTML and EPUB CSS. Closes #8530. --- data/epub.css | 1 + data/templates/styles.html | 1 + test/lhs-test.html | 1 + test/lhs-test.html+lhs | 1 + test/writer.html4 | 1 + test/writer.html5 | 1 + 6 files changed, 6 insertions(+) diff --git a/data/epub.css b/data/epub.css index f8053742c..cfa968b7e 100644 --- a/data/epub.css +++ b/data/epub.css @@ -99,6 +99,7 @@ code { font-family: Menlo, Monaco, 'Lucida Console', Consolas, monospace; font-size: 85%; margin: 0; + hyphens: manual; } pre { margin: 1em 0; diff --git a/data/templates/styles.html b/data/templates/styles.html index bee9911d3..74182d180 100644 --- a/data/templates/styles.html +++ b/data/templates/styles.html @@ -106,6 +106,7 @@ $if(monobackgroundcolor)$ $endif$ font-size: 85%; margin: 0; + hyphens: manual; } pre { margin: 1em 0; diff --git a/test/lhs-test.html b/test/lhs-test.html index d1c1ae5e3..98e9f9beb 100644 --- a/test/lhs-test.html +++ b/test/lhs-test.html @@ -87,6 +87,7 @@ font-family: Menlo, Monaco, 'Lucida Console', Consolas, monospace; font-size: 85%; margin: 0; + hyphens: manual; } pre { margin: 1em 0; diff --git a/test/lhs-test.html+lhs b/test/lhs-test.html+lhs index 19abfd187..9ebcf0020 100644 --- a/test/lhs-test.html+lhs +++ b/test/lhs-test.html+lhs @@ -87,6 +87,7 @@ font-family: Menlo, Monaco, 'Lucida Console', Consolas, monospace; font-size: 85%; margin: 0; + hyphens: manual; } pre { margin: 1em 0; diff --git a/test/writer.html4 b/test/writer.html4 index 36708ab88..2afc3c5a5 100644 --- a/test/writer.html4 +++ b/test/writer.html4 @@ -90,6 +90,7 @@ font-family: Menlo, Monaco, 'Lucida Console', Consolas, monospace; font-size: 85%; margin: 0; + hyphens: manual; } pre { margin: 1em 0; diff --git a/test/writer.html5 b/test/writer.html5 index c1b292f3d..453d994d6 100644 --- a/test/writer.html5 +++ b/test/writer.html5 @@ -90,6 +90,7 @@ font-family: Menlo, Monaco, 'Lucida Console', Consolas, monospace; font-size: 85%; margin: 0; + hyphens: manual; } pre { margin: 1em 0; -- cgit v1.2.3