From: Benct Philip Jonsson <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [EPUB] - Avoid horizontal scrollbar when code lines overflow?
Date: Thu, 17 Oct 2019 20:36:51 +0200 [thread overview]
Message-ID: <6c954294-0a89-f2d9-64ec-ba96aead243e@gmail.com> (raw)
In-Reply-To: <yh480klftjiat4.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
On 2019-10-17 18:41, John MacFarlane wrote:
> Gabriel Volpe <volpegabriel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
>> Thanks for looking into it!
>>
>> It might be hard-coded, I don't see any reference to `.sourceCode` here:
>> https://github.com/jgm/pandoc/blob/master/data/epub.css
>
> This is the relevant part:
>
> $if(highlighting-css)$
> <style>
> $highlighting-css$
> </style>
> $endif$
>
> Note that this comes *before* the link to the epub stylesheet,
> so you should be able to override things there.
If I'm not mistaken CSS specified in the HTML file always overrides CSS
specified in an external file. That the link comes after the in-file
CSS doesn't matter. The OP will have to add a line with
````css
<style>code.sourceCode { white-space: pre-wrap; }</style>
````
between lines 12 and 13 of `default.epub3`
https://github.com/jgm/pandoc/blob/b80bd174a23e17f5a5c656f51e8eac148abaf85d/data/templates/default.epub3#L12
next prev parent reply other threads:[~2019-10-17 18:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-16 21:40 Gabriel Volpe
[not found] ` <93a42423-c2c0-4350-b59c-42722cc2dd2e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-16 23:10 ` BPJ
[not found] ` <CADAJKhDTGLozWoY3KnJNEQ=QFSrsRt07JoKHprf-hm6rehCzpQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-16 23:20 ` Gabriel Volpe
[not found] ` <CAJReL36yu7O+=Fr3YJwhrWFp_4rY-sJqPZB1zq25Zvw_o2wZeg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-16 23:25 ` Gabriel Volpe
[not found] ` <CAJReL36m=JhQyBLUp2mXCLoJF7Fu9911f2erD9od8HXZhZa4jw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-17 1:16 ` Gabriel Volpe
[not found] ` <CAJReL34Kv+hj8yZeajmGLoLdXonSYs0jtx8RRAU3x98wXucYwA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-17 8:19 ` BPJ
[not found] ` <CADAJKhBz_QZwY=tADQLVm_HdUSicEo8g10BPHu2esVKi7Fb7AQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-17 12:40 ` Gabriel Volpe
[not found] ` <CAJReL34fkofrhE2xys-z=LS1NGOg65zO7ydpvOeq7qeqd-BquA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-17 15:03 ` BPJ
[not found] ` <CADAJKhBLfROtLxFbqQMAHeTTNNf972XVY+UKiPcBR8HW7KiiLA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-17 15:18 ` Gabriel Volpe
[not found] ` <CAJReL34K8E9UuBg5iQJhDRhev__S0LFwFBi5LTdd5j231JRiWw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-17 16:04 ` BPJ
[not found] ` <CADAJKhAf9_yqjT6ayEDpz7UEB_tmXLRUSoK6WiEYPUDgcEG9ww-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-17 16:10 ` Gabriel Volpe
[not found] ` <CAJReL37QpX0Shh6rbu7huDEucOGvB=HQSbfdeJaKW1981FCRrQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-17 16:41 ` John MacFarlane
[not found] ` <yh480klftjiat4.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-10-17 16:46 ` Gabriel Volpe
[not found] ` <CAJReL36_hH9eg=kc-dLzmQFh45CgCNy4bKKXm6Zz0Di4fTCQKA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-17 16:51 ` Gabriel Volpe
2019-10-17 18:36 ` Benct Philip Jonsson [this message]
[not found] ` <6c954294-0a89-f2d9-64ec-ba96aead243e-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-10-17 18:54 ` Gabriel Volpe
[not found] ` <CAJReL36vJHDt-vd0SQsEfNhWUZLRJZzsxaWF58YsTK-kEoZ8XA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-17 20:00 ` BPJ
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6c954294-0a89-f2d9-64ec-ba96aead243e@gmail.com \
--to=melroch-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).