[Libreoffice-bugs] [Bug 107677] FILESAVE HTML: Comments are added after exporting to HTML

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed May 10 13:36:52 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=107677

Jan Holesovsky <kendy at collabora.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|regression                  |difficultyInteresting,
                   |                            |easyHack, skillCpp

--- Comment #4 from Jan Holesovsky <kendy at collabora.com> ---
Heh, I don't think this is a regression :-)  The functionality to insert
comment for meta-tags was there previously, so for pages that have the correct
specification of the time you'd see it too.

It was only that LibreOffice was ignoring its own malformed meta tags
previously, but after they are fixed, they started appearing on re-import.

Having said that - I can imagine that we could actually read the meta tags
correctly, instead of showing them as comments :-)  Let's turn this into an
easy hack:

The actual postit note is added in SwHTMLParser::ParseMoreMetaOptions() in
sw/source/filter/html/swhtml.cxx, see SwPostItField aPostItField etc. at the
very end of that method.

Instead of this, we want to have an 'if' for
OOO_STRING_SVTOOLS_HTML_META_created and OOO_STRING_SVTOOLS_HTML_META_changed,
and handle that similarly to how is HtmlMeta::Created and HtmlMeta::Changed
handled in svtools/source/svhtml/parhtml.cxx, see
HTMLParser::ParseMetaOptionsImpl().

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170510/28117648/attachment.html>


More information about the Libreoffice-bugs mailing list