diff dwtx/jface/text/Document.d @ 161:f8d52b926852

...
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:49:30 +0200
parents 6dcb0baaa031
children
line wrap: on
line diff
--- a/dwtx/jface/text/Document.d	Wed Aug 27 02:07:22 2008 +0200
+++ b/dwtx/jface/text/Document.d	Wed Aug 27 14:49:30 2008 +0200
@@ -178,7 +178,7 @@
  * See {@link GapTextStore} and <code>TreeLineTracker</code> for algorithmic behavior of the used
  * document structures.
  * </p>
- * 
+ *
  * @see dwtx.jface.text.GapTextStore
  * @see dwtx.jface.text.CopyOnWriteTextStore
  */
@@ -220,7 +220,7 @@
 
     /**
      * Checks whether the line information needs to be repaired.
-     * 
+     *
      * @param text the text to check
      * @return <code>true</code> if the line information must be repaired
      * @since 3.4
@@ -250,18 +250,18 @@
 
         if (defaultLD is null)
             return false;
-        
+
         defaultLD= getDefaultLineDelimiter();
 
-        if (defaultLD.length() is 1) {
+        if (defaultLD.length is 1) {
             if (rIndex !is -1 && !"\r".equals(defaultLD)) //$NON-NLS-1$
                 return true;
             if (nIndex !is -1 && !"\n".equals(defaultLD)) //$NON-NLS-1$
                 return true;
-        } else if (defaultLD.length() is 2)
+        } else if (defaultLD.length is 2)
             return rIndex is -1 || nIndex - rIndex !is 1;
-        
+
         return false;
     }
-    
+
 }