set value outside if/else block

This commit is contained in:
maul.esel 2013-07-08 20:43:03 +02:00
parent f72365da4f
commit 9d2849c562
1 changed files with 4 additions and 4 deletions

View File

@ -18,12 +18,12 @@ module Jekyll
while match = MATCHER.match(markup) do while match = MATCHER.match(markup) do
markup = markup[match.end(0)..-1] markup = markup[match.end(0)..-1]
if match[2] value = if match[2]
value = match[2].gsub(/\\"/, '"') match[2].gsub(/\\"/, '"')
elsif match[3] elsif match[3]
value = match[3].gsub(/\\'/, "'") match[3].gsub(/\\'/, "'")
elsif match[4] elsif match[4]
value = context[match[4]] context[match[4]]
end end
params[match[1]] = value params[match[1]] = value