mirror of
https://github.com/redmine/redmine.git
synced 2025-11-05 04:45:57 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user