Rainie3535 / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

HTML import fails with error message #1241

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Win XP Professional 32bit
Sigil 0.5.1

What steps will reproduce the problem?
1. open file "Müthos-Usertreffen.htm"

What is the expected output? 
HTML File opened and inserted into File Section on left side

What do you see instead?
Error Message with the following content:

Error info: Kann die Datei "C:/Temp/Müthos-Usertreffen.htm: 
C:\build\Sigil-0.5.1-Code\src\Sigil\SourceUpdates\PerformXMLUpdates.cpp(66): 
Throw in function void __thiscall PerformXMLUpdates::UpdateXMLReferences(void)
Dynamic exception type: class boost::exception_detail::clone_impl<struct 
ErrorBuildingDOM>
std::exception::what: Unknown exception
" nicht öffnen.
Sigil version: 0.5.1
Runtime Qt: 4.7.4
Compiled Qt: 4.7.4
Platform: Windows SysInfo ID 48

Please provide any additional information below. If your source file
(SGF/EPUB/HTML/etc) is required to fully understand the problem, please
attach it to this issue. Read the ReportingIssues wiki page before
submitting!

I've added the referenced files in the zip-File. Unpack it in the same dir as 
the HTML file.

Original issue reported on code.google.com by bra...@gmail.com on 7 Feb 2012 at 12:55

Attachments:

GoogleCodeExporter commented 9 years ago
The attributes in the starting <html> tag generate the exception:
<html b:version="2" class="v2" dir="ltr"><head>

with only 
<html><head>
Sigil reports no error, but the contents after the first illegal comment is 
missing.

Original comment by bra...@gmail.com on 7 Feb 2012 at 1:41

GoogleCodeExporter commented 9 years ago
Sigil cannot handle all types of invalid files.  Crashing is a bit harsh, but 
until a more graceful handling of these types of issues is implemented there 
isn't much that can be done with this.

Original comment by daveheil...@gmail.com on 21 Aug 2012 at 4:18