diff options
| author | John MacFarlane <[email protected]> | 2023-01-06 10:49:55 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-01-06 10:50:48 -0800 |
| commit | a682e72c03e253bc9f4604fa416feb7440828f79 (patch) | |
| tree | 1736dcc10305bb2ffcc9eeb6182afb0dd90323cb | |
| parent | 0d891afab65b6928ace302d1a110ea9303c4abfb (diff) | |
Add `code { hyphens: manual; }` to HTML and EPUB CSS.
Closes #8530.
| -rw-r--r-- | data/epub.css | 1 | ||||
| -rw-r--r-- | data/templates/styles.html | 1 | ||||
| -rw-r--r-- | test/lhs-test.html | 1 | ||||
| -rw-r--r-- | test/lhs-test.html+lhs | 1 | ||||
| -rw-r--r-- | test/writer.html4 | 1 | ||||
| -rw-r--r-- | test/writer.html5 | 1 |
6 files changed, 6 insertions, 0 deletions
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; |
