Skip to content

Commit 1e44052

Browse files
author
Pedro Maciel
committed
removes newlines from {% haml %} includes
1 parent bf90759 commit 1e44052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jekyll-haml/tags/haml_partial.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def render(context)
2525
choices = Dir['**/*'].reject { |x| File.symlink?(x) }
2626
if choices.include?(@file)
2727
source = File.read(@file)
28-
conversion = ::Haml::Engine.new(source).render
28+
conversion = ::Haml::Engine.new(source).render.delete("\n")
2929
partial = Liquid::Template.parse(conversion)
3030
begin
3131
return partial.render!(context)

0 commit comments

Comments
 (0)