summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-06 13:29:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-06 13:29:23 +0000
commitf79a6f701a6bd0ef086fbdb40c2bb7622f048afc (patch)
tree10c90be86742a87bd9b84dd1227ff06e17b8be07 /lib
parent338e407a9119b625beff8e12b320ccddd295dad9 (diff)
downloadredmine-f79a6f701a6bd0ef086fbdb40c2bb7622f048afc.tar.gz
redmine-f79a6f701a6bd0ef086fbdb40c2bb7622f048afc.zip
Makes textile formatter accept 2 letters acronym (#6591).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4374 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redcloth3.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redcloth3.rb b/lib/redcloth3.rb
index ffc0e1186..d720af9d8 100644
--- a/lib/redcloth3.rb
+++ b/lib/redcloth3.rb
@@ -456,7 +456,7 @@ class RedCloth3 < String
# next if tog and method( tog ).call
# text.gsub! re, resub
#end
- text.gsub!(/\b([A-Z][A-Z0-9]{2,})\b(?:[(]([^)]*)[)])/) do |m|
+ text.gsub!(/\b([A-Z][A-Z0-9]{1,})\b(?:[(]([^)]*)[)])/) do |m|
"<acronym title=\"#{htmlesc $2}\">#{$1}</acronym>"
end
end