From 9d2849c56201d3e6322c309bf36606f4ef5f62a8 Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Mon, 8 Jul 2013 20:43:03 +0200 Subject: [PATCH] set value outside if/else block --- lib/jekyll/tags/include.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/jekyll/tags/include.rb b/lib/jekyll/tags/include.rb index 5acb5391..ce1350b1 100644 --- a/lib/jekyll/tags/include.rb +++ b/lib/jekyll/tags/include.rb @@ -18,12 +18,12 @@ module Jekyll while match = MATCHER.match(markup) do markup = markup[match.end(0)..-1] - if match[2] - value = match[2].gsub(/\\"/, '"') + value = if match[2] + match[2].gsub(/\\"/, '"') elsif match[3] - value = match[3].gsub(/\\'/, "'") + match[3].gsub(/\\'/, "'") elsif match[4] - value = context[match[4]] + context[match[4]] end params[match[1]] = value