aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/texinfo_format.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2008-09-05 01:24:49 -0400
committerRalph Amissah <ralph@amissah.com>2008-09-05 01:24:49 -0400
commit9432d0345a982f2c64c684cc913b704cca5660f5 (patch)
tree969e72c8a68a9f01a6ab3c1e05e8d72697ca9fe5 /lib/sisu/v0/texinfo_format.rb
parentdal, 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/texinfo_format.rb')
-rw-r--r--lib/sisu/v0/texinfo_format.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sisu/v0/texinfo_format.rb b/lib/sisu/v0/texinfo_format.rb
index cdfa6a75..22fd7a84 100644
--- a/lib/sisu/v0/texinfo_format.rb
+++ b/lib/sisu/v0/texinfo_format.rb
@@ -367,8 +367,7 @@ WOK
@txt.gsub!(/@/i,'@@')
@txt.gsub!(/\{/,'@{'); @txt.gsub!(/\}/,'@}')
#@txt.gsub!(/(^|[\s*!\/#_-])\{/,'\1@{'); @txt.gsub!(/\}([\s*!\/#_-]|$)/,'@}\1')
- @txt.gsub!(/&nbsp;&nbsp;/,' ') # ~ character for hardspace
- @txt.gsub!(/&nbsp;/,' ') # ~ character for hardspace
+ @txt.gsub!(/(?:&nbsp;|#{Mx[:nbsp]})+/,' ') # ~ character for hardspace
@txt.gsub!(/&(\S+?);/,' ')
@txt.gsub!(/&/,'<=and>')
@txt.gsub!(/(\s+&\s+)/,' and ')