comparison lib/.svn/text-base/redcloth3.rb.svn-base @ 37:94944d00e43c

* Update to SVN trunk rev 4411
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 19 Nov 2010 13:24:41 +0000
parents 513646585e45
children af80e5618e9b
comparison
equal deleted inserted replaced
22:40f7cfd4df19 37:94944d00e43c
454 def pgl( text ) 454 def pgl( text )
455 #GLYPHS.each do |re, resub, tog| 455 #GLYPHS.each do |re, resub, tog|
456 # next if tog and method( tog ).call 456 # next if tog and method( tog ).call
457 # text.gsub! re, resub 457 # text.gsub! re, resub
458 #end 458 #end
459 text.gsub!(/\b([A-Z][A-Z0-9]{2,})\b(?:[(]([^)]*)[)])/) do |m| 459 text.gsub!(/\b([A-Z][A-Z0-9]{1,})\b(?:[(]([^)]*)[)])/) do |m|
460 "<acronym title=\"#{htmlesc $2}\">#{$1}</acronym>" 460 "<acronym title=\"#{htmlesc $2}\">#{$1}</acronym>"
461 end 461 end
462 end 462 end
463 463
464 # Parses Textile attribute lists and builds an HTML attribute string 464 # Parses Textile attribute lists and builds an HTML attribute string