diff options
author | Ralph Amissah <ralph@amissah.com> | 2008-09-05 01:24:49 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2008-09-05 01:24:49 -0400 |
commit | 9432d0345a982f2c64c684cc913b704cca5660f5 (patch) | |
tree | 969e72c8a68a9f01a6ab3c1e05e8d72697ca9fe5 /lib/sisu/v0/spell.rb | |
parent | dal, bullet footnotes fix (check numbered bullets, should also be ok) (diff) |
character given to represent non-break space in internal code (dal, constants and affected downstream code)
Diffstat (limited to 'lib/sisu/v0/spell.rb')
-rw-r--r-- | lib/sisu/v0/spell.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sisu/v0/spell.rb b/lib/sisu/v0/spell.rb index 477a472f..8f89c470 100644 --- a/lib/sisu/v0/spell.rb +++ b/lib/sisu/v0/spell.rb @@ -72,7 +72,8 @@ module Utility end def check @input.each do |data| - data.gsub!(/(https?|www|ftp|gopher|png|jpg|gif|html|htm| )\S+/i,' ') + data.gsub!(/(https?|www|ftp|gopher|png|jpg|gif|html|htm)\S+/i,' ') + data.gsub!(/( |#{Mx[:nbsp]})/i,' ') data.gsub!(/<\/?(table|tr|td|b|p|href).*?>/i,' ') data.gsub!(/(<==.+|<:\S+>|<!.+?!>|^0~.+|\{\{\{|~)/,' ') data.gsub!(/(["|<>)(\n'`'.;&_-]|\=)/,' ') |