Bug 34666

Summary: HTML import: unsupported tag causes comments import troubles
Product: LibreOffice Reporter: sasha.libreoffice
Component: WriterAssignee: Christina Rossmanith <ChrRossmanith>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: medium CC: LibreOffice
Version: 3.3.1 release   
Hardware: All   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=36080
https://bugs.freedesktop.org/show_bug.cgi?id=36390
Whiteboard: EasyHack
i915 platform: i915 features:
Attachments: in Writer appesrs comment
Really simplfied document showing the problem

Description sasha.libreoffice 2011-02-24 07:21:20 UTC
Created attachment 43754 [details]
in Writer appesrs comment

When I open this file it Web browser, it opens ok (without pictures).
But in LibreWriter in begining of document appears comment.
In openoffice no problem.
Comment 1 Cédric Bosdonnat 2011-03-03 02:37:49 UTC
The problem comes from this invalid tag in the HTML file
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="metricconverter"/>

If this tag is moved inside the comment following it, that comment is properly handled.

The code handling the parsing the HTML is here:
http://opengrok.libreoffice.org/xref/writer/sw/source/filter/html/swhtml.cxx#961
Comment 2 Cédric Bosdonnat 2011-03-03 02:40:51 UTC
Created attachment 44064 [details]
Really simplfied document showing the problem
Comment 3 Anthony Durity 2011-04-19 04:23:35 UTC
Why is this set to RESOLVED -> FIXED ?
Comment 4 Anthony Durity 2011-04-19 05:12:29 UTC
See https://bugs.freedesktop.org/show_bug.cgi?id=36080#c2 for a patch that should fix this issue. The attached simplified file now loads up ok for me.
Comment 5 Rainer Bielefeld Retired 2012-04-10 02:42:53 UTC
EasyHack tags unification: tags only allowed in Whiteboard to make queries more easy and reliable

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.