From fea9c54768145f56237b4af1f5ad2c2aefa056d7 Mon Sep 17 00:00:00 2001 From: Marcus Stollsteimer Date: Sun, 18 Nov 2012 10:08:00 +0100 Subject: [PATCH] Avoid warning for grouped expression --- lib/liquid/htmltags.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"