[Libreoffice-commits] .: svtools/source

Thorsten Behrens thorsten at kemper.freedesktop.org
Fri Mar 18 05:27:58 PDT 2011


 svtools/source/svhtml/parhtml.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit f10a9aa101d24c0aca00b1f5f20090c8700b5ed0
Author: Christina Rossmanith <ChrRossmanith at web.de>
Date:   Thu Mar 17 13:47:12 2011 +0100

    Fix Bug 34666

diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index c7a4b64..81e1273 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -1252,6 +1252,14 @@ int HTMLParser::_GetNextToken()
                     if( '>' != nNextCh && IsParserWorking() )
                     {
                         ScanText( '>' );
+
+                        // #i34666# closing "/>"?:
+                        // return HTML_UNKNOWNCONTROL_OFF instead of
+                        // HTML_UNKNOWNCONTROL_ON
+                        if ('/' == aToken.GetChar(aToken.Len()-1)) {
+                            if (HTML_UNKNOWNCONTROL_ON == nRet)
+                                nRet = HTML_UNKNOWNCONTROL_OFF;
+                        }
                         if( sal_Unicode(EOF) == nNextCh && rInput.IsEof() )
                         {
                             // zurueck hinter die < gehen  und dort neu


More information about the Libreoffice-commits mailing list