View Single Post
Old 07-19-2020, 02:34 PM   #1
fredex
Enthusiast
fredex began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Aug 2014
Device: none
First line of every chapter does not break correctly

I'm reading the Kindle edition of Sharon Lee and Steve Miller's "Accepting the Lance" in Calibre. In Calibre 4.21 there is an issue with the first line of each chapter, wherein it extends several words beyond the right margin before the linebreak occurs.

Changing preferences in the calibre from "Paged" mode to "Flow" fixes the problem.

I have not been able to recreate the issue in Calibre 3.x. Likewise on my actual Kindle paperwhite it displays fine.

so I'm left to guess it is either a Calibre problem, or something weird in the CSS or html. While I'm no expert in either, they both look fine to me.

Code:
.pcalibre1:first-line {
    text-transform: uppercase
    }
Code:
  <body class="calibre" id="I3QM0-42e1df17df8e45d499273e237de08784">
<div class="calibre5" id="calibre_pb_17"></div>
<p class="part" id="calibre_toc_11">Jelaza Kazone</p>
<p class="p15">• • • • • • • • • • • • • • •</p>
<p class="pcalibre1 p5">“Last I heard, it was better to be doin’ something than doin’ nothin’,” Clarence said into the silence that followed Theo’s account of her meeting with the portmaster.</p>
This is the beginning of the first chapter, but the others are much the same.

note that class pcalibre1 attempts to set first line to all caps. if I comment out the body of pcalibre1 the problem goes away (along with the caps).

here's what it looks like on the page:

Moderator Notice
made into attachment (paperclip icon in advanced mode)



Thanks in advance!

Fred
Attached Thumbnails
Click image for larger version

Name:	9LMLX.png
Views:	525
Size:	19.7 KB
ID:	180759  

Last edited by theducks; 07-19-2020 at 02:40 PM.
fredex is offline   Reply With Quote