mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
Fixed issue with stripping whitespace on code captions. Sleepy code.
This commit is contained in:
parent
1a4119a039
commit
977be3adea
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user