diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-06-25 00:07:44 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-06-25 00:07:44 -0400 |
commit | c25fc2751886278a4e7f30f127e80449160a47f1 (patch) | |
tree | d19cab06d629a995848a296409693b5890d59f60 /lib/sisu/v4/xml_format.rb | |
parent | v5: "general code cleaning" fix (diff) |
v4: general code cleaning, sync with v5sisu_4.1.6
Diffstat (limited to 'lib/sisu/v4/xml_format.rb')
-rw-r--r-- | lib/sisu/v4/xml_format.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/sisu/v4/xml_format.rb b/lib/sisu/v4/xml_format.rb index d3607c1d..316a4102 100644 --- a/lib/sisu/v4/xml_format.rb +++ b/lib/sisu/v4/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 </tr></table>} end def make_scroll_seg_pdf - manifest=scroll=seg='' + seg='' wgt=Widget.new(@md) seg=%{<td align="center" bgcolor=#{@vz.color_band2}> #{@vz.nav_txt_toc_link} @@ -500,7 +500,6 @@ WOK </tr></table>} end def make_concordance - manifest=scroll=seg='' wgt=Widget.new(@md) %{<table summary="toc scroll and segment with pdf" border="0" cellpadding="3" cellspacing="0"> <tr> @@ -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 %{ <table summary="segment navigation available documents types: toc,doc,pdf,concordance" border="0" cellpadding="3" cellspacing="0"> <tr> @@ -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 |