Changes between Version 4 and Version 5 of ColumnizeTag


Ignore:
Timestamp:
10/11/2009 12:26:52 PM (6 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>'
Back to Top