[PATCH] Fix Bug 34666

Christina Rossmanith ChrRossmanith at web.de
Thu Mar 17 05:47:12 PDT 2011


---
 svtools/source/svhtml/parhtml.cxx |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

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
-- 
1.7.0.4


--------------030506070103000808050204--


More information about the LibreOffice mailing list