From 4ac76c462554b231084d2894e726e1b00522bbe0 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 23 Sep 2007 19:31:29 +0100 Subject: minor cleaning --- lib/sisu/v0/html_segments.rb | 4 ++-- lib/sisu/v0/manpage.rb | 2 +- lib/sisu/v0/plaintext.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/sisu/v0/html_segments.rb b/lib/sisu/v0/html_segments.rb index a7e81624..7c97925e 100644 --- a/lib/sisu/v0/html_segments.rb +++ b/lib/sisu/v0/html_segments.rb @@ -65,7 +65,7 @@ module SiSU_HTML_seg @@loop_count=@@seg_total=@@tracker=0 @@is4=@@is3=@@is2=@@is1=0 @@header1=@@header2=@@header3=@@header4=0 - @@seg[:tocband],@@seg[:title],@@seg[:headers],@@seg[:main],@@seg[:tail],@@seg[:credits],@@seg_subtoc_array,@@seg_endnotes_array,@@heading_endnotes_array,@@seg[:endnote_all]=Array.new(10){[]} + @@seg[:tocband],@@seg[:title],@@seg[:headers],@@seg[:main],@@seg[:tail],@@seg[:credits],@@seg_subtoc_array,@@seg_endnotes_array,@@seg[:endnote_all]=Array.new(9){[]} @@seg[:header_endnotes]='' @@tablehead,@@number_of_cols=0,0 @@flag_group=false @@ -385,7 +385,7 @@ module SiSU_HTML_seg reinitialise @@seg_total,@@tracker=0,0 @@seg_endnotes,@@seg_subtoc={},{} - @@seg_endnotes_array,@@seg_subtoc_array,@@heading_endnotes_array=[],[],[] + @@seg_endnotes_array,@@seg_subtoc_array=[],[] @@seg[:endnote_all]=[] end def get_subtoc_endnotes(data) #get endnotes & sub-table of contents subtoc diff --git a/lib/sisu/v0/manpage.rb b/lib/sisu/v0/manpage.rb index dfc1ebf8..05586dec 100644 --- a/lib/sisu/v0/manpage.rb +++ b/lib/sisu/v0/manpage.rb @@ -489,7 +489,7 @@ WOK #content << manpage[:owner_details] if @md.stmp =~/\w+/ #not used? content << manpage[:tail] Output.new(content,@md).manpage - @@endnotes[:para],@@endnotes[:end]=[],[] + @@endnotes={ :para=>[],:end=>[] } end end class Output [],:end=>[] } end end class Output