Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-20-2013, 05:37 PM   #16
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Carl A. Carlsson View Post
Sorry Guys I thought I had closed this question.

The problem was the pretty print feature on Sigil was adding stuff to the file that was interacting with Apple's HTML. It was a question of conflicting styles of using HTML not a bug. The solution was to turn pretty print and allied options off before loading the file.

Hi:

FWIW, you probably mean HTML Tidy, not Pretty Print. All Pretty Print does is add whitespace, in CODE view, to make it easier to read the code. Nothing it does should affect the actual book. Hope that helps.

Hitch
Hitch is offline   Reply With Quote
Old 12-20-2013, 05:53 PM   #17
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,572
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Hitch View Post
All Pretty Print does is add whitespace, in CODE view, to make it easier to read the code. Nothing it does should affect the actual book.
Usually true. But when that "white-space: pre;" attribute gets inlined or linked externally, the whitespace changes that Pretty Print makes actually can affect the rendered book view.
DiapDealer is online now   Reply With Quote
Old 12-20-2013, 07:13 PM   #18
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by DiapDealer View Post
Usually true. But when that "white-space: pre;" attribute gets inlined or linked externally, the whitespace changes that Pretty Print makes actually can affect the rendered book view.
Seriously?

How does that occur? I don't think I've ever seen it happen here, so I'm genuinely asking.

Hitch
Hitch is offline   Reply With Quote
Old 12-20-2013, 10:15 PM   #19
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,572
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'll try to put together a quick epub as an example.

OK:

Make sure to have all cleaning turned off upon opening/saving and see how the code renders in Book View.

Then change Sigil to automatically Pretty Print the same ePub upon opening it and note how it renders.

I don't know if it has any adverse effect in ADE or other readers, but that attribute can sure create funky results within Sigil's Book View (not that anyone should trust Book View, of course, but I've seen it trip people up before).
Attached Files
File Type: epub white-space.epub (2.0 KB, 163 views)

Last edited by DiapDealer; 12-20-2013 at 10:20 PM.
DiapDealer is online now   Reply With Quote
Old 12-21-2013, 03:26 AM   #20
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Well, considering the issues "white-space: pre;" causes, it should be avoided like the plague...
Toxaris is offline   Reply With Quote
Old 12-21-2013, 07:37 AM   #21
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,572
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Absolutely!
But I vaguely rememer one of the iSomething editors wedging it in by default. Perhaps that's been fixed in later versions, though.
DiapDealer is online now   Reply With Quote
Old 12-21-2013, 03:40 PM   #22
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by DiapDealer View Post
I'll try to put together a quick epub as an example.

OK:

Make sure to have all cleaning turned off upon opening/saving and see how the code renders in Book View.

Then change Sigil to automatically Pretty Print the same ePub upon opening it and note how it renders.

I don't know if it has any adverse effect in ADE or other readers, but that attribute can sure create funky results within Sigil's Book View (not that anyone should trust Book View, of course, but I've seen it trip people up before).

Well, I'll be damned. Holy *&^%$#@! I guess as I don't use PP or HT, I've never seen this. It absolutely affects the view in a reader. Damn.

Thanks, Diap. I doubt that I ever woulda seen that. Hm.

Hitch
Hitch is offline   Reply With Quote
Old 12-21-2013, 04:03 PM   #23
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,572
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'd say it's pretty rare. Just one to keep in the back of your mind for whenever someone is at the end of their rope trying to figure out where some extra white-space is coming from (and whenever someone swears on a stack of bibles that the line-spacing in code view is affecting how things render).
DiapDealer is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why define a paragraph as a span with no different or extra formatting? bfollowell ePub 7 03-16-2011 10:30 PM
word macro for editing needless paragraph marks excalibra Workshop 6 03-12-2011 10:35 AM
Extra paragraph line when converting from LRF jhempel24 Calibre 3 08-18-2010 07:00 AM
I'm having a problem with extra paragraph spaces akosimike Calibre 10 05-27-2010 06:53 PM
Extra punctuation marks in epub after loading from SRL to PRS-600 planters Sony Reader 8 03-12-2010 11:38 AM


All times are GMT -4. The time now is 02:47 PM.


MobileRead.com is a privately owned, operated and funded community.