[Libreoffice] [PATCH] should fix bugs fdo#36080 and fdo#34666
Anthony Durity
gravious at jollyrotten.org
Tue Apr 19 05:27:26 PDT 2011
Hello good people,
If someone related to this area could give this patch the once over.
Please find attached patch.
This is (teensy tiny) patch that should fix an annoying HTML filter
"feature".
The problem is is that an xhtml style close tag <br/> <title/> is not
recognized
is a html tag which is as it should be. But there was some code that would
spew
the contents (inner HTML as it were) of the tag into the Writer document.
This
makes sense but not in the HEAD section. So I found where I think the check
should go and stuck it in. May break other stuff but seems to be the correct
logic
from where I am sitting.
Uncovered a slightly nastier issue fdo#36390 while implementing this fix. If
anybody
is concerned it is if a tag is formed like <br /> or <title /> (note the
extra space this
time!) then the HTML parser recognizes them as valid tags when they are
obviously
not with an interesting set of consequences depending on the tag.
Regards,
Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110419/17c3bfcb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Resolves-fdo-36080-fdo-34666-process-unknown-html-ta.patch
Type: application/octet-stream
Size: 1498 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110419/17c3bfcb/attachment.obj>
More information about the LibreOffice
mailing list