From d2cdcb726270d77afbb8b713bd9fe81acbae86f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Sat, 18 Aug 2018 22:03:13 +0200 Subject: [PATCH] Bug --- docs/_plugins/tocmaker_block.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_plugins/tocmaker_block.rb b/docs/_plugins/tocmaker_block.rb index 5bcffe8095..612d95c850 100644 --- a/docs/_plugins/tocmaker_block.rb +++ b/docs/_plugins/tocmaker_block.rb @@ -13,7 +13,7 @@ class TocMakerBlock < Liquid::Block condition, depth = arg.split @max_depth = depth.to_s.empty? ? 100 : depth.to_i - @condition_var = condition.strip + @condition_var = condition.strip unless condition.to_s.empty? @body = tokens end