From f31e286f4a73c5c0f355512b0cb45c6c82088516 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 22 Jun 2013 01:13:46 -0400 Subject: v5: general code cleaning * propagate back to v4 after testing --- lib/sisu/v5/xml_format.rb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'lib/sisu/v5/xml_format.rb') diff --git a/lib/sisu/v5/xml_format.rb b/lib/sisu/v5/xml_format.rb index cccfc59f..14710a99 100644 --- a/lib/sisu/v5/xml_format.rb +++ b/lib/sisu/v5/xml_format.rb @@ -271,7 +271,7 @@ WOK end class FormatTextObject attr_accessor :md,:txt,:format,:paranum,:p_num,:para_id,:headname,:font - def initialize(md,dob) + def initialize(md,dob) @md,@dob=md,dob if @dob[:ocn]=~/\d+/ @paranum=/(\d+)/m.match(@dob[:ocn])[1] @@ -482,7 +482,7 @@ WOK } end def make_scroll_seg_pdf - manifest=scroll=seg='' + seg='' wgt=Widget.new(@md) seg=%{ #{@vz.nav_txt_toc_link} @@ -500,7 +500,6 @@ WOK } end def make_concordance - manifest=scroll=seg='' wgt=Widget.new(@md) %{ @@ -751,7 +750,6 @@ WOK #{@vz.table_close}} end def toc_next2 - pre,nxt=false,true toc_nav(false,true).dup end def toc_pre_next2 @@ -761,10 +759,9 @@ WOK toc_nav(true,false,2).dup end def doc_types #used in seg_nav_band ### - scroll=seg='' wgt=Widget.new(@md) #dir=SiSU_Env::InfoEnv.new(@md.fns) - x=if @md.concord_make + if @md.concord_make %{
@@ -1005,7 +1002,7 @@ WOK end else if @md.opt.cmd =~/M/ - p __FILE__ +':'+ __LINE__.to_s + p __FILE__ << ':' << __LINE__.to_s p t_o.class p caller end -- cgit v1.2.3