diff --git a/lib/liquid/htmltags.rb b/lib/liquid/htmltags.rb index 78424e6..62a5389 100644 --- a/lib/liquid/htmltags.rb +++ b/lib/liquid/htmltags.rb @@ -57,7 +57,7 @@ module Liquid result << "" << render_all(@nodelist, context) << '' - if col == cols and not (index == length - 1) + if col == cols and (index != length - 1) col = 0 row += 1 result << "\n"