mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Allow empty filter contents
This commit is contained in:
parent
49bec786cd
commit
8a1d8b1e27
2 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,7 @@ module Hamlit
|
|||
end
|
||||
|
||||
def compile(node)
|
||||
node.value[:text] ||= ''
|
||||
find_compiler(node.value[:name]).compile(node)
|
||||
end
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ module PrettyHamlit
|
|||
end
|
||||
|
||||
def compile(node, indent_level)
|
||||
node.value[:text] ||= ''
|
||||
content = find_compiler(node.value[:name]).compile(node)
|
||||
[:multi,
|
||||
[:code, "#{@options[:buffer]} << ::PrettyHamlit::DynamicIndentation.indent_with(#{indent_level}) do |#{@options[:buffer]}|"],
|
||||
|
|
Loading…
Add table
Reference in a new issue