Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapter 33 epub format: code missing throughout on Apple devices #272

Open
craigggers opened this issue May 14, 2020 · 5 comments
Open

chapter 33 epub format: code missing throughout on Apple devices #272

craigggers opened this issue May 14, 2020 · 5 comments

Comments

@craigggers
Copy link

build: 5-9-2020 (and earlier)
chapter: 33
format: epub

@pydanny
Copy link
Member

pydanny commented May 14, 2020

Confirmed. In fact, all code examples in epub are lacking their text.

@craigggers
Copy link
Author

i did not see that. was fine up until this chapter and only seems to affect this chapter. this is on iphone books app if that helps

@pydanny
Copy link
Member

pydanny commented May 14, 2020

We've duplicated this problem on some other readers. The text is there, just transparent. The epub.css file is the same, so we're not sure what's going on. So readers have visibility into what's going on:

Generated Markup from the Introduction:

<div class="sourceCode" id="cb1"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1"></a><span class="kw">class</span> Cheese:</span>
<span id="cb1-2"><a href="#cb1-2"></a>    <span class="kw">def</span> <span class="fu">__init__</span>(<span class="va">self</span>, aged<span class="op">=</span><span class="va">False</span>):</span>
<span id="cb1-3"><a href="#cb1-3"></a>        <span class="va">self</span>.aged <span class="op">=</span> aged</span></code></pre></div>

CSS:

.sourceCode {
  font-size: 80%;
  font-family: 'Latin Modern Mono Light Cond';
}

@craigggers
Copy link
Author

ya know, i just switched to "scrolling view" and it appeared! maybe an issue with page flip and page wrapping?

@pydanny
Copy link
Member

pydanny commented May 14, 2020

Awesome! The problem is that some of my epub readers aren't showing the code examples.

@pydanny pydanny changed the title chapter 33 epub format: code missing throughout chapter 33 epub format: code missing throughout on Apple devices May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants