12-01-2009, 08:52 AM | #1 |
Addict
Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
|
word break error in epub
I have just got a couple of ebooks, created by the same person. One of them displays correctly on readers and in Sigil the other one is constantly breaking words instead of moving to the next line. It does this both in a reader and in Sigil so I assumed it was something in the CSS.
The code is the same for both books Code:
<style type="text/css"> /*<![CDATA[*/ body.sgc-5 {word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;} p.sgc-4 {text-align: center;} span.sgc-3 {font-weight: bold;} h3.sgc-2 {text-align: center; color: rgb(79,79,79);} h1.sgc-1 {text-align: center; color: rgb(70,130,180);} img.sgc-6 {height: 100%} /*]]>*/ </style> The body of the ebook is formatted with <p> </p> tags around paragraphs, the same in both books. Any suggestions as to why one is splitting words and the other is not? |
12-01-2009, 09:21 AM | #2 |
Wizard
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
Do they both use <body class="sgc-5"> at the beginning of the body section of the (x)html files?
|
Advert | |
|
12-01-2009, 09:45 AM | #3 |
Addict
Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
|
Neither book has any entry for class=sgc-5 anywhere in the body section, one of the reasons I thought there might be an error with that line. Deleting that line from both books makes no difference, one still breaks words and the other does not.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
From MS Word 2010 to ePub | OlleF | Workshop | 11 | 04-20-2014 07:12 AM |
Mobi to epub page break | mr.ninja13 | Calibre | 23 | 08-09-2011 02:06 PM |
Break tags don't work in epub conversions | Amalthia | Calibre | 0 | 04-06-2010 01:07 PM |
Strange behavior converting from ODT to EPUB, lots of page-break | superanima | Calibre | 0 | 01-25-2010 02:57 AM |
epub - unwanted page break after image | mrmikel | Calibre | 5 | 07-10-2009 07:35 AM |