diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-01-31 18:36:08 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-01-31 18:36:08 -0500 |
commit | 8fe365726f3bb7866a7a9285cb5045c50c39fd67 (patch) | |
tree | 29ed9813072aeb435d8b548fe3d24c810689bc93 /lib/sisu/v4/dal_idx.rb | |
parent | v4 v3: dal, on ocn excluded paragraphs (~# -#), hang/indent bullet, fix (diff) |
v4: epub, constants, debug alternative for various readers ... work on
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>' |