aboutsummaryrefslogtreecommitdiff
path: root/plugins/blockquote.rb
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2012-05-24 10:28:32 -0500
committerBrandon Mathis <brandon@imathis.com>2012-05-24 10:28:32 -0500
commite53b26ad3042d5657c869ab1961c35e7b716e4e9 (patch)
tree0aa61464828020e72a354cfd2a2c31e857dbe9d9 /plugins/blockquote.rb
parent2a55f35211c3e8504a0cfa52d2f68933e8424947 (diff)
downloadmy_new_personal_website-e53b26ad3042d5657c869ab1961c35e7b716e4e9.tar.xz
my_new_personal_website-e53b26ad3042d5657c869ab1961c35e7b716e4e9.zip
updated plugins to work with latest version of Liquid
Diffstat (limited to '')
-rw-r--r--plugins/blockquote.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/blockquote.rb b/plugins/blockquote.rb
index 7fb8c261..62e7d143 100644
--- a/plugins/blockquote.rb
+++ b/plugins/blockquote.rb
@@ -46,7 +46,7 @@ module Jekyll
end
def render(context)
- quote = paragraphize(super.map(&:strip).join)
+ quote = paragraphize(super)
author = "<strong>#{@by.strip}</strong>" if @by
if @source
url = @source.match(/https?:\/\/(.+)/)[1].split('/')
@@ -75,7 +75,7 @@ module Jekyll
end
def paragraphize(input)
- "<p>#{input.gsub(/\n\n/, '</p><p>').gsub(/\n/, '<br/>')}</p>"
+ "<p>#{input.lstrip.rstrip.gsub(/\n\n/, '</p><p>').gsub(/\n/, '<br/>')}</p>"
end
end
end