... | ... |
@@ -67,7 +67,7 @@ module Jekyll |
67 | 67 |
if @filetype |
68 | 68 |
source += "{% highlight #{@filetype} %}\n" + code + "\n{% endhighlight %}</figure></div>" |
69 | 69 |
else |
70 |
- source += "<pre><code>" + code.gsub!(/</,'<') + "</code></pre></figure></div>" |
|
70 |
+ source += "<pre><code>" + code.lstrip.rstrip.gsub(/</,'<') + "</code></pre></figure></div>" |
|
71 | 71 |
end |
72 | 72 |
partial = Liquid::Template.parse(source) |
73 | 73 |
context.stack do |