Replaced acronym with abbr tags (#15191).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12235 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2013-10-26 07:15:08 +00:00
parent ec5dbdb0bd
commit 3578cf4d9a
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -129,7 +129,7 @@
#
# Will become:
#
# <acronym title="American Civil Liberties Union">ACLU</acronym>
# <abbr title="American Civil Liberties Union">ACLU</abbr>
#
# == Adding Tables
#
@@ -457,7 +457,7 @@ class RedCloth3 < String
# text.gsub! re, resub
#end
text.gsub!(/\b([A-Z][A-Z0-9]{1,})\b(?:[(]([^)]*)[)])/) do |m|
"<acronym title=\"#{htmlesc $2}\">#{$1}</acronym>"
"<abbr title=\"#{htmlesc $2}\">#{$1}</abbr>"
end
end