![]() |
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? |
Quote:
Will that do? |
Quote:
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... |
Run Sigil, turn off Tidy and then load your XML and see if it still changes your divs.
|
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! |
So it seems Tidy is tidying more then just the full paragraph styles. Bah!
|
| All times are GMT -4. The time now is 10:30 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.