diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-01-06 22:42:31 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-01-06 22:42:31 -0500 |
commit | 0e42ce6f34c3cfdf370f439f58c4e3de8b05ea92 (patch) | |
tree | 6fc9ffb3f627a91138a1479d6fa144687b7b45e3 /lib/sisu/v5/html.rb | |
parent | v5: docbook, fictionbook, some tidying (diff) |
v5: cosmetic code, case statement
Diffstat (limited to 'lib/sisu/v5/html.rb')
-rw-r--r-- | lib/sisu/v5/html.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sisu/v5/html.rb b/lib/sisu/v5/html.rb index fda8e8ab..4ff58c43 100644 --- a/lib/sisu/v5/html.rb +++ b/lib/sisu/v5/html.rb @@ -259,12 +259,12 @@ module SiSU_HTML toc=if dob_toc.is ==:heading \ || dob.is==:heading_insert toc=case dob_toc.ln - when 1; SiSU_HTML::Source::Toc.new(@md,dob_toc).level_1 - when 2; SiSU_HTML::Source::Toc.new(@md,dob_toc).level_2 - when 3; SiSU_HTML::Source::Toc.new(@md,dob_toc).level_3 - when 4; SiSU_HTML::Source::Toc.new(@md,dob_toc).level_4 - when 5; SiSU_HTML::Source::Toc.new(@md,dob_toc).level_5 - when 6; SiSU_HTML::Source::Toc.new(@md,dob_toc).level_6 + when 1 then SiSU_HTML::Source::Toc.new(@md,dob_toc).level_1 + when 2 then SiSU_HTML::Source::Toc.new(@md,dob_toc).level_2 + when 3 then SiSU_HTML::Source::Toc.new(@md,dob_toc).level_3 + when 4 then SiSU_HTML::Source::Toc.new(@md,dob_toc).level_4 + when 5 then SiSU_HTML::Source::Toc.new(@md,dob_toc).level_5 + when 6 then SiSU_HTML::Source::Toc.new(@md,dob_toc).level_6 else nil end end |