aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/dal_idx.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/dal_idx.rb')
-rw-r--r--lib/sisu/v0/dal_idx.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sisu/v0/dal_idx.rb b/lib/sisu/v0/dal_idx.rb
index 36489e74..0b5c74c7 100644
--- a/lib/sisu/v0/dal_idx.rb
+++ b/lib/sisu/v0/dal_idx.rb
@@ -95,7 +95,7 @@ module SiSU_book_index
the_idx=construct_book_index(idx_array)
#screen_print(the_idx) if @md.cmd.inspect =~/V/
sisu_markup_idx,html_idx=nil,nil
- if @md.book_index
+ if @md.book_idx
idx=index(the_idx)
output_html_idx(idx[:html])
html_idx=idx[:html]
@@ -188,7 +188,7 @@ module SiSU_book_index
while letter < f
if alph.length > 0
letter=alph.shift
- @idx[:html] << %{\n<hr />\n<p class="book_index_lev1"><a name="#{letter}">#{letter}</a></p>}
+ @idx[:html] << %{\n<hr />\n<p class="book_index_lev1"><a name="#{letter}">#{letter}</a><p class="book_index_lev1"><a name="#{letter.downcase}"> </a></p>}
else break
end
end
@@ -292,11 +292,11 @@ module SiSU_book_index
end
end
def output_html_idx(html_idx)
- if @md.book_index
+ if @md.book_idx
path="#{@env.path.output}/#{@md.fnb}"
Dir.mkdir(path) unless FileTest.directory?(path)
- html_index_file=File.new("#{path}/#{@md.fn[:book_index]}",'w')
- #puts "#{path}/#{@md.fn[:book_index]}"
+ html_index_file=File.new("#{path}/#{@md.fn[:book_idx]}",'w')
+ #puts "#{path}/#{@md.fn[:book_idx]}"
html_idx.each {|x| html_index_file << x }
html_index_file.close
end