Ignore:
Timestamp:
Sep 3, 2007, 8:33:58 PM (10 years ago)
Author:
afb@…
Message:

allow indented blank lines between blocks of code and such

(This fix wasn't quite correct. It was fixed in r33705. See #14165.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portlint.tcl

    r28170 r28568  
    120120        set require_blank false
    121121
    122         if {[string match "* " $line] || [string match "*\t" $line]} {
     122        if {[string match "* " $line] || [string match "*\t" $line] &&
     123            [string trim $line] != "" } {
     124            # allow indented blank lines between blocks of code and such
    123125            ui_warn "Line $lineno has trailing whitespace before newline"
    124126            incr warnings
Note: See TracChangeset for help on using the changeset viewer.