[28568] trunk/base/src/port1.0/portlint.tcl

source_changes at macosforge.org source_changes at macosforge.org
Mon Sep 3 13:33:58 PDT 2007


Revision: 28568
          http://trac.macosforge.org/projects/macports/changeset/28568
Author:   afb at macports.org
Date:     2007-09-03 13:33:58 -0700 (Mon, 03 Sep 2007)

Log Message:
-----------
allow indented blank lines between blocks of code and such

Modified Paths:
--------------
    trunk/base/src/port1.0/portlint.tcl

Modified: trunk/base/src/port1.0/portlint.tcl
===================================================================
--- trunk/base/src/port1.0/portlint.tcl	2007-09-03 20:31:39 UTC (rev 28567)
+++ trunk/base/src/port1.0/portlint.tcl	2007-09-03 20:33:58 UTC (rev 28568)
@@ -119,7 +119,9 @@
         }
         set require_blank false
 
-        if {[string match "* " $line] || [string match "*\t" $line]} {
+        if {[string match "* " $line] || [string match "*\t" $line] &&
+            [string trim $line] != "" } {
+            # allow indented blank lines between blocks of code and such
             ui_warn "Line $lineno has trailing whitespace before newline"
             incr warnings
         }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070903/05224db1/attachment.html


More information about the macports-changes mailing list