diff options
author | Ralph Amissah <ralph@amissah.com> | 2008-09-16 00:35:57 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2008-09-16 00:35:57 -0400 |
commit | f555e0777bb4408e2e380150f28f3d433cb66d66 (patch) | |
tree | 5b9d1e83b9e3faeff51e264f8a6db8ad7a193131 /lib/sisu/v0/dal_idx.rb | |
parent | changelog date, touch (diff) |
fixes: alphabet list (concordance, dal_idx), and file types (dal_expand_insertions)
Diffstat (limited to 'lib/sisu/v0/dal_idx.rb')
-rw-r--r-- | lib/sisu/v0/dal_idx.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sisu/v0/dal_idx.rb b/lib/sisu/v0/dal_idx.rb index c2bba846..d7d5223e 100644 --- a/lib/sisu/v0/dal_idx.rb +++ b/lib/sisu/v0/dal_idx.rb @@ -181,8 +181,11 @@ module SiSU_book_index f=/^(\S)/.match(x)[1] if letter < f while letter < f - letter=alph.shift - @idx[:html] << %{\n<hr />\n<p class="book_index_lev1"><a name="#{letter}">#{letter}</a></p>} + if alph.length > 0 + letter=alph.shift + @idx[:html] << %{\n<hr />\n<p class="book_index_lev1"><a name="#{letter}">#{letter}</a></p>} + else break + end end end @idx[:sst] << %{\n\n#{Mx[:fa_bold_o]}#{x},#{Mx[:fa_bold_c]} } |