diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-02-05 01:02:31 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-02-05 01:02:31 -0500 |
commit | 99c5b5d56f8785ee9ec2cc991c55a8a2eb6524bb (patch) | |
tree | 709cf7ab40ec7d5ab3e5ee25d1cbd1ac75a1dd57 /lib/sisu/v5/html_format.rb | |
parent | v5 v6: ocn: strict html; turn on/off rules for txt & odf (diff) |
v5 v6: html, endnote name and nameref make compliant (epub use same)
Diffstat (limited to 'lib/sisu/v5/html_format.rb')
-rw-r--r-- | lib/sisu/v5/html_format.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sisu/v5/html_format.rb b/lib/sisu/v5/html_format.rb index e0be4f8a..a933d091 100644 --- a/lib/sisu/v5/html_format.rb +++ b/lib/sisu/v5/html_format.rb @@ -1248,7 +1248,7 @@ WOK note='' if txt =~/(#{Mx[:en_a_o]}.+?#{Mx[:en_a_c]}|#{Mx[:en_b_o]}.+?#{Mx[:en_b_c]})/m # had \s* at end note=$1 - note=note.gsub(/[\n\s]+/m,' ') + note=note.gsub(/[\s]+/m,' ') txt=txt.gsub(/(?:#{Mx[:en_a_o]}.+?#{Mx[:en_a_c]}|#{Mx[:en_b_o]}.+?#{Mx[:en_b_c]})\s*/m,' '). gsub(/<a[\n\s]+name="-\d+"[\n\s]+href="#_\d+"> <sup>\d+<\/sup> /m,'') end |