Index: lib/redmine/wiki_formatting.rb =================================================================== --- lib/redmine/wiki_formatting.rb (revision 1555) +++ lib/redmine/wiki_formatting.rb (working copy) @@ -152,12 +152,16 @@ end end end - + # Turns all email addresses into clickable links (code from Rails). def inline_auto_mailto(text) text.gsub!(/([\w\.!#\$%\-+.]+@[A-Za-z0-9\-]+(\.[A-Za-z0-9\-]+)+)/) do - text = $1 - %{#{text}} + mail = $1 + if text.match(/]*>(.*)(#{Regexp.escape(mail)})(.*)<\/a>/) + mail + else + %{#{mail}} + end end end end