diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-12-13 22:11:26 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-12-13 22:11:26 -0500 |
commit | 316219ecfaca8b614ed6040dc974ecd184d33710 (patch) | |
tree | b9288fb5d6f2da822a8972412da19cb48cabe6c1 /lib/sisu/v3/odf.rb | |
parent | debian/changelog (3.1.7-1) (diff) | |
parent | v3: texpdf, output_by: filetype, fix, language code part of filename, fix (diff) |
Merge commit 'sisu_3.1.8' into debian/sid
Diffstat (limited to 'lib/sisu/v3/odf.rb')
-rw-r--r-- | lib/sisu/v3/odf.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sisu/v3/odf.rb b/lib/sisu/v3/odf.rb index b7b747ee..7d4fa309 100644 --- a/lib/sisu/v3/odf.rb +++ b/lib/sisu/v3/odf.rb @@ -535,10 +535,12 @@ module SiSU_ODF unless dob =~/^(?:#{Rx[:meta]}|%+ )/m w.gsub!(/&#(?:126|152);/,'~') #126 usual w.gsub!(/ /,' ') - if w !~/&\S{2,7}?;/ + if w !~/(?:&\S{2,7}?;)+/ w.gsub!(/&/,'&') end - w.gsub!(/(&\S{1,7};)+&/,'\1&') #could break things + if w !~/&\S{1,7}?;(?:&\S{1,7}?;)+/ #imperfect + w.gsub!(/(&\S{1,7};)+&/,'\1&') + end end para_array << w end |