[Libreoffice-commits] core.git: svtools/source

Noel Grandin noel at peralex.com
Wed Feb 12 03:13:47 PST 2014


 svtools/source/svhtml/parhtml.cxx |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit b16f90f33143e6c8c9e8e2fa9cc55797b5bbff12
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Feb 12 10:08:43 2014 +0200

    remove code in dead HTML_BEHAVIOUR #define
    
    git grep found nowhere in the codebase that this define is being
    set.
    
    Change-Id: I63e18e8f47b5e58ff96b075ddb4bc9a36e1dc80e
    Reviewed-on: https://gerrit.libreoffice.org/8002
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index b892cc4..5b45f94 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -1600,17 +1600,10 @@ int HTMLParser::FilterPRE( int nToken )
 {
     switch( nToken )
     {
-#ifdef HTML_BEHAVIOUR
-    // These become LFs according to the definition
-    case HTML_PARABREAK_ON:
-    case HTML_LINEBREAK:
-        nToken = HTML_NEWPARA;
-#else
     // in Netscape they only have impact in not empty paragraphs
     case HTML_PARABREAK_ON:
         nToken = HTML_LINEBREAK;
     case HTML_LINEBREAK:
-#endif
     case HTML_NEWPARA:
         nPre_LinePos = 0;
         if( bPre_IgnoreNewPara )


More information about the Libreoffice-commits mailing list