aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-01-06 10:49:55 -0800
committerJohn MacFarlane <[email protected]>2023-01-06 10:50:48 -0800
commita682e72c03e253bc9f4604fa416feb7440828f79 (patch)
tree1736dcc10305bb2ffcc9eeb6182afb0dd90323cb /data
parent0d891afab65b6928ace302d1a110ea9303c4abfb (diff)
Add `code { hyphens: manual; }` to HTML and EPUB CSS.
Closes #8530.
Diffstat (limited to 'data')
-rw-r--r--data/epub.css1
-rw-r--r--data/templates/styles.html1
2 files changed, 2 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;