]*>(.*)(#{Regexp.escape(mail)})(.*)<\/a>/)
- mail
- else
- content_tag('a', mail, :href => "mailto:#{mail}", :class => "email")
- end
- end
- end
end
end
end
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 2fcb030..a9dd4b3 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -940,7 +940,7 @@ RAW
def test_default_formatter
with_settings :text_formatting => 'unknown' do
text = 'a *link*: http://www.example.net/'
- assert_equal 'a *link*: http://www.example.net/
', textilizable(text)
+ assert_equal 'a *link*: http://www.example.net/
', textilizable(text)
end
end
diff --git a/test/unit/lib/redmine/wiki_formatting_test.rb b/test/unit/lib/redmine/wiki_formatting_test.rb
index 909acde..915b086 100644
--- a/test/unit/lib/redmine/wiki_formatting_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting_test.rb
@@ -36,8 +36,8 @@ and an email address foo@example.net
DIFF
expected = <<-EXPECTED
-This is a sample *text* with a link: http://www.redmine.org
-and an email address foo@example.net
+This is a sample *text* with a link: http://www.redmine.org
+and an email address foo@example.net
EXPECTED
assert_equal expected.gsub(%r{[\r\n\t]}, ''), Redmine::WikiFormatting::NullFormatter::Formatter.new(raw).to_html.gsub(%r{[\r\n\t]}, '')