Commit 461500d4 authored by Sylvester Keil's avatar Sylvester Keil

Strip relative option just once

See #124
parent 43b35887
......@@ -62,7 +62,7 @@ module Jekyll
end
opts.on('-r', '--relative RELATIVE') do |relative|
@relative = relative
@relative = relative.to_s.strip
end
opts.on('-t', '--text TEXT') do |text|
......@@ -575,7 +575,7 @@ module Jekyll
end
def link_target_for key
"#{base_url}#{relative.to_s.strip}##{[prefix, key].compact.join('-')}"
"#{base_url}#{relative}##{[prefix, key].compact.join('-')}"
end
def cite(keys)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment