diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-01-31 21:41:55 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-01-31 21:41:55 -0500 |
commit | ee132f1146cbed3266b448e1cea312375c201cf1 (patch) | |
tree | 37498d07d78fa16e21361ccbefeb2adc0d9e6039 /lib/sisu/v4/dal_idx.rb | |
parent | debian/changelog (4.0.3-1) (diff) | |
parent | v4 (v3): version & changelog, dates touched (diff) |
Merge tag 'sisu_4.0.4' into debian/sid
Diffstat (limited to 'lib/sisu/v4/dal_idx.rb')
-rw-r--r-- | lib/sisu/v4/dal_idx.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/sisu/v4/dal_idx.rb b/lib/sisu/v4/dal_idx.rb index 63eb487e..a1d66402 100644 --- a/lib/sisu/v4/dal_idx.rb +++ b/lib/sisu/v4/dal_idx.rb @@ -161,12 +161,7 @@ module SiSU_DAL_BookIndex the_idx end def clean_xml(str) - str=str.gsub(/&/,'&'). - gsub(/\(/,'('). - gsub(/\)/,')'). - gsub(/\*/,'*'). - gsub(/\+/,'+'). - gsub(/,/,',') + str=str.gsub(/&/,'&') str end def index(the_idx) @@ -193,8 +188,8 @@ module SiSU_DAL_BookIndex idx[:html] << '' idx[:xhtml] << '' else - idx[:html] << %{<a href="##{x}">#{x}</a>, } - idx[:xhtml] << %{<a href="##{x.downcase}">#{x}</a>, } + idx[:html] << %{<a href="##{x}">#{x}</a>,#{$ep[:hsp]}} + idx[:xhtml] << %{<a href="##{x.downcase}">#{x}</a>,#{$ep[:hsp]}} end end idx[:html] << '</p>' |