12-03-2012, 07:44 AM | #1 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
closing tags not auto-fixing
i am seeing different behaviours in 6.01 from 6.0
if I replace all <p class= whatever with <h2 class=whatever across all files then sigil no longer applies matching closing tags , instead it gives me tag errors to fix all I did was install over 6.0 I did not alter any other preferences. upate: i reinstalled 6.0 , tried same operation on same book - the same regex now works ok - closing tags are fixed as I want them to be, automatically Last edited by cybmole; 12-03-2012 at 07:57 AM. |
12-03-2012, 09:13 AM | #2 |
Calibre Plugins Developer
Posts: 4,640
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
You have to change your Preferences ->Clean Source options from "Pretty Print" to "Pretty Print Tidy" (which is the functional equivalent of what you had in 0.6). Users upgrading from 0.6 have to manually do this.
|
12-03-2012, 10:56 AM | #3 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
i thought it may be something like that,
perhaps add a warning to release notes re need to manually adjust ? |
12-03-2012, 07:01 PM | #4 |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
|
12-03-2012, 10:15 PM | #5 |
Wizard
Posts: 1,078
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
FWIW -- I tried all 4 appearance options -- just replacing <i> with nothing, and I can't the 6.0 behaviour either
The 4 options all left the </i> Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <p>xxxxxxxxxxxxxxxxxxx</p> <p>xxxxxxxxxxxxxxxxxxxxxxxxxxx</p> <p>xxxx used to have the opening tag xxxxxxxxx</i></p> </body> </html> Paul Last edited by phossler; 12-03-2012 at 10:17 PM. |
12-04-2012, 01:45 AM | #6 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
|
12-04-2012, 03:50 AM | #7 | |
Calibre Plugins Developer
Posts: 4,640
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
I have verified this btw, if you have both 0.6 and 0.6.1, start up 0.6, make sure it is set to "Pretty Print", exit and start 0.6.1 and it stays at "Pretty Print". |
|
12-04-2012, 04:07 AM | #8 |
♫
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
|
|
12-04-2012, 08:49 AM | #9 | |
Wizard
Posts: 1,078
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
Paul |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
questions on self-closing tags and legal xhtml in epubs | KevinH | ePub | 5 | 04-23-2012 10:12 PM |
Help with EPUb validation and closing tags | book24 | ePub | 1 | 05-24-2011 05:16 PM |
Release 0.7.54 - Mobi self-closing tags | Moonraker | Calibre | 2 | 04-09-2011 07:35 AM |
find replace - does it auto-fix closing tqags ??? | cybmole | Sigil | 6 | 01-19-2011 02:32 PM |
Auto sort tags? | scottjl | Calibre | 2 | 12-19-2009 11:56 AM |