diff --git a/lib/review/htmlbuilder.rb b/lib/review/htmlbuilder.rb
index 8a02499cf..c94176508 100644
--- a/lib/review/htmlbuilder.rb
+++ b/lib/review/htmlbuilder.rb
@@ -1162,7 +1162,7 @@ def nofunc_text(str)
def compile_href(url, label)
if @book.config["externallink"]
- %Q(#{label.nil? ? escape_html(url) : escape_html(label)})
+ %Q(#{label.nil? ? escape_html(url) : escape_html(label)})
else
label.nil? ? escape_html(url) : I18n.t('external_link', [escape_html(label), escape_html(url)])
end
diff --git a/test/test_htmlbuilder.rb b/test/test_htmlbuilder.rb
index 5cc63cf95..69067b885 100644
--- a/test/test_htmlbuilder.rb
+++ b/test/test_htmlbuilder.rb
@@ -183,10 +183,10 @@ def test_inline_href
@book.config["epubmaker"] ||= {}
@book.config["epubmaker"]["externallink"] = false
actual = compile_inline("@{http://github.com&q=1,Git\\,Hub}")
- assert_equal %Q|Git,Hub|, actual
+ assert_equal %Q|Git,Hub|, actual
actual = compile_inline("@{http://github.com&q=1}")
- assert_equal %Q|http://github.com&q=1|, actual
+ assert_equal %Q|http://github.com&q=1|, actual
end
def test_inline_href_epubmaker
@@ -204,9 +204,9 @@ def test_inline_href_epubmaker
@book.config["epubmaker"]["externallink"] = true
actual = compile_inline("@{http://github.com&q=1,Git\\,Hub}")
- assert_equal %Q|Git,Hub|, actual
+ assert_equal %Q|Git,Hub|, actual
actual = compile_inline("@{http://github.com&q=1}")
- assert_equal %Q|http://github.com&q=1|, actual
+ assert_equal %Q|http://github.com&q=1|, actual
end
def test_inline_raw