Mercurial > hg > soundsoftware-site
comparison lib/redcloth3.rb @ 51:371eac10df0b live
* Merge from "cannam" branch. This includes update to Redmine trunk, plus welcome/tip-of-the-day from luisf branch.
author | Chris Cannam |
---|---|
date | Wed, 24 Nov 2010 12:20:08 +0000 |
parents | 94944d00e43c |
children | af80e5618e9b |
comparison
equal
deleted
inserted
replaced
34:09b1d4349da3 | 51:371eac10df0b |
---|---|
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 |