Code

Changes between Version 4 and Version 5 of ColumnizeTag


Ignore:
Timestamp:
10/11/09 10:26:52 (5 years ago)
Author:
holem
Comment:

Bugfix on last correction. For adding empty td-tags self.columns must be greater then self.counter

Legend:

Unmodified
Added
Removed
Modified
  • ColumnizeTag

    v4 v5  
    188188        forloop = context['forloop'] 
    189189        if self.counter == self.columns or forloop['last'] and forloop['counter0'] % self.columns != (self.columns - 1): 
    190             if (self.columns < self.counter): 
     190            if (self.columns > self.counter): 
    191191              for i in range(0,self.columns-self.counter): 
    192192                output += '<td>&nbsp;</td>'