diff dwtx/jface/internal/text/html/HTML2TextReader.d @ 150:5cf141e43417

...
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 23:05:26 +0200
parents 000f9136b8f7
children f70d9508c95c
line wrap: on
line diff
--- a/dwtx/jface/internal/text/html/HTML2TextReader.d	Sun Aug 24 22:41:48 2008 +0200
+++ b/dwtx/jface/internal/text/html/HTML2TextReader.d	Sun Aug 24 23:05:26 2008 +0200
@@ -49,7 +49,7 @@
     private static const Map fgEntityLookup;
     private static const Set fgTags;
 
-    static {
+    static this() {
 
         fgTags= new HashSet();
         fgTags.add("b"); //$NON-NLS-1$
@@ -157,7 +157,7 @@
             return EMPTY_STRING;
 
         html= html.toLowerCase();
-        
+
         String tag= html;
         if ('/' is tag.charAt(0))
             tag= tag.substring(1);
@@ -225,13 +225,13 @@
 
         if ("/dd".equals(html)) //$NON-NLS-1$
             return LINE_DELIM;
-        
+
         if ("head".equals(html) && !fHeaderDetected) { //$NON-NLS-1$
             fHeaderDetected= true;
             fIgnore= true;
             return EMPTY_STRING;
         }
-        
+
         if ("/head".equals(html) && fHeaderDetected && fIgnore) { //$NON-NLS-1$
             fIgnore= false;
             return EMPTY_STRING;
@@ -280,11 +280,11 @@
 
         return html2Text(buf.toString());
     }
-    
+
     private static bool isInComment(StringBuffer buf) {
         return buf.length() >= 3 && "!--".equals(buf.substring(0, 3)); //$NON-NLS-1$
     }
-    
+
     private static bool isCommentEnd(StringBuffer buf) {
         int tagLen= buf.length();
         return tagLen >= 5 && "--".equals(buf.substring(tagLen - 2)); //$NON-NLS-1$