Browse code

added a space in code figcaption title to make it play nicer with RSS or other no CSS views

Brandon Mathis authored on 12/07/2011 at 12:49:43
Showing 1 changed files
... ...
@@ -25,7 +25,7 @@ module Jekyll
25 25
         code = file.read
26 26
         file_type = file.extname
27 27
         url = "#{context.registers[:site].config['url']}/#{code_dir}/#{@file}"
28
-        source = "<figure><figcaption><span>#{file.basename}</span><a href='#{url}'>download</a></figcaption>\n"
28
+        source = "<figure><figcaption><span>#{file.basename}</span> <a href='#{url}'>download</a></figcaption>\n"
29 29
         source += "{% highlight #{file_type} %}\n" + code + "\n{% endhighlight %}</figure>"
30 30
         partial = Liquid::Template.parse(source)
31 31
         context.stack do