aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4/dal_idx.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-01-31 18:36:08 -0500
committerRalph Amissah <ralph@amissah.com>2013-01-31 18:36:08 -0500
commit8fe365726f3bb7866a7a9285cb5045c50c39fd67 (patch)
tree29ed9813072aeb435d8b548fe3d24c810689bc93 /lib/sisu/v4/dal_idx.rb
parentv4 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.rb11
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(/&/,'&#038;').
- gsub(/\(/,'&#040;').
- gsub(/\)/,'&#041;').
- gsub(/\*/,'&#042;').
- gsub(/\+/,'&#043;').
- gsub(/,/,'&#044;')
+ str=str.gsub(/&/,'&amp;')
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>,&nbsp;}
- idx[:xhtml] << %{<a href="##{x.downcase}">#{x}</a>,&nbsp;}
+ idx[:html] << %{<a href="##{x}">#{x}</a>,#{$ep[:hsp]}}
+ idx[:xhtml] << %{<a href="##{x.downcase}">#{x}</a>,#{$ep[:hsp]}}
end
end
idx[:html] << '</p>'