MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Error: Cannot split: ......xhtml XML is not well formed (https://www.mobileread.com/forums/showthread.php?t=238116)

Alt68er 04-22-2014 03:31 PM

Error: Cannot split: ......xhtml XML is not well formed
 
Hi together,
I'm re-formatting a lot of epubs including by inserting Sigil chapter breaks...
Many times when pressing F6 Sigil gives me the above error and I have to clean up my file (via context-menu) before being able to split it automatically.
Can anyone out there tell me what can be the reason(s), please? Up to now I could not find out, what Sigil is "correcting" when cleaning up my file.

Many thanks in advance!

Peter

mrmikel 04-22-2014 03:51 PM

You have left off or never had when you imported, paragraph end tags or other end tag or end tags with no start tags, or anchor ends without anchor starts, the list goes on.

You can run it through flight crew to see the list or run it through epub check (that will give you many errors that aren't so important. You can also load it into calibre's editor if you have calibre installed and choose check book.

If you are bringing things in from Calibre, it won't have a doctype by design on K. Goyal's part. But you can tell it to let it fix things for you and it will add it.

Alt68er 04-23-2014 04:00 AM

Hi mrmikel,

1000 thanks. THAT was.

Knowing where to search I immediately found my error: When doing a search and replace (with a saved search) I always opened and closed a paragraph with <p>, i.e. I forgot the slash in the end tag....

Have a nice day,

Peter


All times are GMT -4. The time now is 10:15 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.