Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi,

first bug fix. Built successfully and could open testdoc.html correctly.

Christina
From d9b5cacd10a87d8d680a1dd4fc95971e92ed5c5f Mon Sep 17 00:00:00 2001
From: Christina Rossmanith <ChrRossmanith@web.de>
Date: Thu, 17 Mar 2011 13:47:12 +0100
Subject: [PATCH] Fix Bug 34666

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


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.