View Single Post
Old Today, 12:22 PM   #8
LenaWolf
Member
LenaWolf began at the beginning.
 
LenaWolf's Avatar
 
Posts: 22
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-T3, Kobo Libra Colour
Quote:
Originally Posted by Quoth View Post
There normally should be zero <br /> in body. Vertical spacing should be by class.
It just depends on your source. My source is used to create several different formats, and in PDF this is where I use real drop caps which I replace by a layout with the first character being double the size in ePUB, without dropping it. I tried using floats, but it doesn't render reliably. So the line break is an artefact from a work-around from PDF where you have to combine several short paragraphs together in order to have your drop cap display in full size, such as over 4 lines instead of only 2. This combined paragraph then has a line break and a tab, and I wrap the tab into a character style which is translated into a padded style for ePub so that it looks just like a normal indent (I use indented text in regular paragraphs). That is to say, I no longer insert an indent after every line break, but instead I use character styling on the tab. And yes, I know, the tab disappears in ePUB, and that's fine, but the styling remains.

So my line breaks are not used to achieve vertical spacing at all but to make a work-around for full-sized drop caps in PDF which then needs to be smoothed over in ePUB. But I've got it figured out!
LenaWolf is online now   Reply With Quote