View Single Post
Old 12-01-2009, 08:52 AM   #1
weedfreak
Addict
weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.
 
weedfreak's Avatar
 
Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
Question 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 line looks, to my untrained eye, to be incorrect, but the display of one ebook is OK with that line in.

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?
weedfreak is offline   Reply With Quote