![]() |
#1 |
Connoisseur
![]() Posts: 51
Karma: 10
Join Date: Feb 2012
Device: none
|
Bug report: Doctype removed on file merge
Merge files and the doctype declaration gets omitted from the merged document, whilst being present in both original xhtml files.
visually, this Code:
<?xml version="1.0" encoding="utf-8"?> <!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"> Code:
<?xml version="1.0" encoding="utf-8"?> <html xmlns="http://www.w3.org/1999/xhtml"> edit: i'm using the OSX build on El Capitan (v 10.11.1) (is this the right venue for Sigil bug reports?) |
![]() |
![]() |
![]() |
#2 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,378
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Confirmed.
Open Sigil Add blank html file Highlight both html files, right-click and and select Merge. doctype disappears Place cursor in front of one of the p tags in code view Click Edit->Spit at cursor (then click Split at cursor because spitting at it won't accomplish anything ![]() The doctype will reappear on the first file, but not the second. Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,499
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi Ryn,
Thanks for your bug report. Both bugs are caused by the same issue in GumboInterface.cpp in perform_body_updates() when it should use serialize() not serialize_contents(). I will merge a fix for this when I get home from work. The fix will appear in the next release. Thank you for your bug report! KevinH |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,378
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() Posts: 51
Karma: 10
Join Date: Feb 2012
Device: none
|
Thanks guys, for your quick support and awesome program. I use it a lot actually.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() Posts: 51
Karma: 10
Join Date: Feb 2012
Device: none
|
I have noticed that the doctype declaration reappears on a save. so whereas without the declaration any nbsps present cause an error in book view, when the epub is saved the problem is gone.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bug report | mtravellerh | PocketBook | 303 | 11-03-2013 07:21 PM |
i62HD annotation merge PDF bug | talizh | Onyx Boox | 9 | 01-25-2013 01:38 PM |
How to report a bug??? | tmlee51 | Calibre | 2 | 02-14-2012 11:07 PM |
bug report and associated questions | paulrw | Calibre | 20 | 07-28-2010 04:24 PM |