Thread: Aura H2O2 How to prevent line-breaks?
View Single Post
Old 05-25-2023, 07:13 AM   #1
Nirkatze
Junior Member
Nirkatze began at the beginning.
 
Nirkatze's Avatar
 
Posts: 3
Karma: 10
Join Date: Feb 2011
Device: Kobo Aura H2Ov2, iPod Touch
How to prevent line-breaks?

Hi all,

I have a few fantasy books where telepathic dialogue is marked in non-standard ways, for example:

*Hi! How are you?*
<Hello. I'm good.>

And every now and then, when the line-breaks line up just right, they end up like this:

*Hi! How are you?
*
<Hello. I'm good.
>

I've been trying to figure out a way to prevent line-breaks with the beginning and end "quotes" but haven't had any luck. I use Sigil to edit and prefer epub2, and side-load using Calibre. I also prefer justified (over ragged-right), and have my <p> tag set to text-align: justify.

I've been trying this in the stylesheet:
.nowrap {white-space: nowrap;
line-break-inside: avoid;}

Looks like this in the html file:
<p><i><span class="nowrap">*Hi!</span> How are <span class="nowrap">you?*</span></i></p>

But it doesn't seem to be working. I'd appreciate some expert advice!
Nirkatze is offline   Reply With Quote