View Single Post
Old 03-02-2023, 02:12 AM   #1
TTimeTraveller
Member
TTimeTraveller began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2023
Device: Kobo Clara HD 1
Problem with EPUB's stanzas

Hello, I'm trying to convert an EPUB into an usable format for printing. The problem is that after conversion, the blank lines between stanzas are missing. Like this:

This is how it should look:

boss i went
and interviewed the mummy
of the egyptian pharaoh
in the metropolitan museum
as you bade me to do

what ho
my regal leatherface
says i

This is how it looks after conversion with any format:

boss i went
and interviewed the mummy
of the egyptian pharaoh
in the metropolitan museum
as you bade me to do
what ho
my regal leatherface
says i


I've looked into the code but I'm failing to understand why it isn't working.

<div class="block5">
<p class="bl_hanging">boss i went</p>
<p class="bl_hanging">and interviewed the mummy</p>
<p class="bl_hanging">of the egyptian pharaoh</p>
<p class="bl_hanging">in the metropolitan museum</p>
<p class="bl_hanging">as you bade me to do</p>
</div>
<div class="block5">
<p class="bl_hanging">what ho</p>
<p class="bl_hanging">my regal leatherface</p>
<p class="bl_hanging">says i</p>
</div>

When I check the class it looks like this:

div.block5
{
margin-left: 5em;
margin-right: 0em;
text-align:justify;
margin-top: 1em;
margin-bottom: 1em;
}

I only have superficial knowledge of code but I was hoping I could get help on how to fix this. Otherwise I might to manually insert a blank line between each stanza and it would be very time consuming. Thank you so much in any case!
TTimeTraveller is offline   Reply With Quote