Fixed issue with stripping whitespace on code captions. Sleepy code.

This commit is contained in:
Brandon Mathis 2012-12-20 23:50:42 -06:00
parent 1a4119a039
commit 977be3adea

View File

@ -66,7 +66,7 @@ module HighlightCode
end
def captionize (caption, url, anchor)
figcaption = "<figcaption>#{caption.strip} "
figcaption = "<figcaption>#{caption}"
figcaption += "<a href='#{url}'>#{anchor.strip || 'link'}</a>" if url
figcaption += "</figcaption>"
end