View Single Post
Old 02-03-2017, 09:36 PM   #6
slowsmile
Witchman
slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.
 
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
I've had similar problems where the html file in Sigil would split at the start or in the middle of a title. This is really a wrapping problem where the html editor automatically splits the title in Text view into chunks to properly fit it within in the Text viewer dimensions in the editor. So its the editor that adds the newline character that splits your smallcap title. This split normally occurs at the first available gap or space in the text or tag border before the 80 character limit is reached in the html editor. Unfortunately, you have no control over how the text editor automatically handles this.

You could perhaps try including the following property in your p tag inline styling for the offending title line:

white-space: nowrap !important;

I have no idea whether this will work but maybe worth a try because it should prevent any breaks or newlines occurring anywhere on that smallcaps title line. The Importance modifier(!important) is there to prevent the editor from overriding the 'whitespace' property. I also have no idea whether 'whitespace' is a supported style property in epub html. Do it something like this:

Code:
<p style="whitespace: nowrap !important;"><span class="keeptogether">A<span class="smallcaps">N</span></span> <span class="keeptogether">A<span class="smallcaps">MAZING</span></span> <span class="keeptogether">B<span class="smallcaps">OOK</span></span> <span class="keeptogether">T<span class="smallcaps">ITLE</span></span></p>

Last edited by slowsmile; 02-03-2017 at 10:05 PM.
slowsmile is offline   Reply With Quote