From e2bc913c27d78396bbab727142065d64ceee31d0 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 18 May 2020 22:58:33 -0700 Subject: epub.css: wrap overlong lines in highlighted code blocks. This fixes a problem in iBooks v2.4 with our earlier horizontally scrolling code blocks. The problem seems to be a bug in iBooks, not pandoc, but since iBooks is a major target we're changing pandoc's default behavior so that pandoc-produced epubs work on that platform. Closes #6242. --- data/epub.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/epub.css b/data/epub.css index e0fb3fd93..a7ec1c376 100644 --- a/data/epub.css +++ b/data/epub.css @@ -23,3 +23,9 @@ span.underline{ text-decoration: underline; } q { quotes: "“" "”" "‘" "’"; } div.column{ display: inline-block; vertical-align: top; width: 50%; } div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} +@media screen { /* Workaround for iBooks issue; see #6242 */ + .sourceCode { + overflow: visible !important; + white-space: pre-wrap !important; + } +} -- cgit v1.2.3