This commit is contained in:
Clément Fournier
2018-08-18 22:03:13 +02:00
parent c7455012d4
commit d2cdcb7262

View File

@ -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