[Libreoffice-bugs] [Bug 117091] "Import MathML from Clipboard" is broken
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Jul 3 20:17:39 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=117091
Regina Henschel <rb.henschel at t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |azeemmysore at gmail.com
--- Comment #5 from Regina Henschel <rb.henschel at t-online.de> ---
The bug has been introduced with the change to FastParser in
D:\Build_ODF_layers\core\starmath\source\mathmlimport.cxx
Currently
293 // finally, parser the stream
294 try
295 {
296 if( xFastParser.is() )
297 xFastParser->parseStream( aParserInput );
298 else
299 xParser->parseStream( aParserInput );
If I change this to
try
{
xParser->parseStream( aParserInput );
as it has been before, then clipboard content which is a valid <math>...</math>
fragment is detected as MathML and correctly converted. With FastParser is it
not detected as MathML but the FastParser needs the <?xml ... ?> prolog. But
the problem is, that MathML, which is embedded in an HTML document, do not have
such prolog.
The change was
https://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-6-1&id=bf46b46a1d734348096936284fb8a76e977936d0
Mohammed Abdul Azeem <azeemmysore at gmail.com> 2017-10-01 14:11:11 +0530
Moving XSAXDocumentBuilder2 to use XFastDocumentHandler:
@Mohammed: Do you have an idea, how to solve it?
--
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/20180703/dd2f74f7/attachment.html>
More information about the Libreoffice-bugs
mailing list