Closed MaxLap closed 2 years ago
Without this change, every blank lines until other content in the haml file will be sent to the :code filter, which leads to empty lines in the code block:
:code
Hello world 555 :code # lang: ruby def hello puts 'hi' end BYe
This is even done in the :javascript filter, which wouldn't care about those: https://github.com/haml/haml/blob/000b6657b5a9fbc18e64ba75edfd2a2a2c8e8bc2/lib/haml/filters.rb#L220
:javascript
Without this change, every blank lines until other content in the haml file will be sent to the
:code
filter, which leads to empty lines in the code block:This is even done in the
:javascript
filter, which wouldn't care about those: https://github.com/haml/haml/blob/000b6657b5a9fbc18e64ba75edfd2a2a2c8e8bc2/lib/haml/filters.rb#L220