|
|
#1 |
|
Enthusiast
![]() ![]() ![]() Posts: 28
Karma: 274
Join Date: Jul 2011
Device: Kindle3, Kindle4, KoboGlo
|
sigil "condensation" of nested <div>'s
I imported a large valid ebook xhtml file to Sigil (version 0.5.3), saved to epub, and found that all nested <div>'s had been "condensed"; e.g.,
xhtml file content... <div class="outer"> <div class="middle"> <div class="inner"> <img src="example.jpg" alt="example"> </div> </div> </div> appeared in the epub as: <div class="outer middle inner"> <img src="example.jpg" alt="example"> </div> I googled unsuccessfully for explanation, so tried the notation on good example code and found it didn't work. Is there an explanation or workaround for this? |
|
|
|
|
|
#2 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
|
|
|
|
|
|
#3 |
|
Berti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
To answer your question for a workaround: adding a " " after the first two divs would prevent this behavior. But the blank may not be welcome ...
The explenation: i guess there should be not difference in behavior of the reader at all. What makes it for you different ? ------------------- Perkins workaround is much better than mine... |
|
|
|
|
|
#4 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,823
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Run Sigil, turn off Tidy and then load your XML and see if it still changes your divs.
|
|
|
|
|
|
#5 | |
|
Enthusiast
![]() ![]() ![]() Posts: 28
Karma: 274
Join Date: Jul 2011
Device: Kindle3, Kindle4, KoboGlo
|
Quote:
The workarounds might've worked, but they would've been a lot of trouble so I'm glad they're not required. Thanks, all! |
|
|
|
|
|
|
#6 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,823
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
So it seems Tidy is tidying more then just the full paragraph styles. Bah!
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems creating "thin space" between nested quotes | december | Sigil | 23 | 08-03-2012 02:28 PM |
| Changing or removing <div class="calibrenavbar"> | ptsefton | Recipes | 3 | 05-28-2011 09:30 AM |
| Any way to apply calibre's "Series" (and number) meta-info from within Sigil...? | Vintage Season | Sigil | 2 | 07-03-2010 12:35 AM |
| Line indents using "<div>" tags | HarryT | Kindle Formats | 11 | 04-29-2009 11:18 PM |