From 4a794af5dbb150b19d2d36a00c475b3c7f1531da Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 28 Sep 2014 21:34:48 -0400 Subject: v5 v6: xml cosmetic code, minor --- lib/sisu/v5/xml_sax.rb | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) (limited to 'lib/sisu/v5/xml_sax.rb') diff --git a/lib/sisu/v5/xml_sax.rb b/lib/sisu/v5/xml_sax.rb index 17a6b1f4..fca6afa3 100644 --- a/lib/sisu/v5/xml_sax.rb +++ b/lib/sisu/v5/xml_sax.rb @@ -83,13 +83,24 @@ module SiSU_XML_SAX end def read begin - @env,@md,@ao_array=@particulars.env,@particulars.md,@particulars.ao_array + @env, @md, @ao_arr= + @particulars.env,@particulars.md,@particulars.ao_array unless @opt.act[:quiet][:set]==:on tool=if (@opt.act[:verbose_plus][:set]==:on \ || @opt.act[:maintenance][:set]==:on) - "#{@env.program.web_browser} file://#{@md.file.output_path.xml_sax.dir}/#{@md.file.base_filename.xml_sax}\n\t#{@env.program.xml_viewer} file://#{@md.file.output_path.xml_sax.dir}/#{@md.file.base_filename.xml_sax}" + @env.program.web_browser \ + + ' file://' \ + + @md.file.output_path.xml_sax.dir + '/' \ + + @md.file.base_filename.xml_sax + "\n\t" \ + + @env.program.xml_viewer \ + + ' file://' \ + + @md.file.output_path.xml_sax.dir + '/' \ + + @md.file.base_filename.xml_sax elsif @opt.act[:verbose][:set]==:on - "#{@env.program.web_browser} file://#{@md.file.output_path.xml_sax.dir}/#{@md.file.base_filename.xml_sax}" + @env.program.web_browser \ + + ' file://' \ + + @md.file.output_path.xml_sax.dir + '/' \ + + @md.file.base_filename.xml_sax else "[#{@opt.f_pth[:lng_is]}] #{@opt.fno}" end (@opt.act[:verbose][:set]==:on \ @@ -110,7 +121,9 @@ module SiSU_XML_SAX SiSU_Screen::Ansi.new( @opt.act[:color_state][:set], @opt.fns, - "file://#{@md.file.output_path.xml_sax.dir}/#{@md.file.base_filename.xml_sax}" + 'file://' \ + + @md.file.output_path.xml_sax.dir + '/' \ + + @md.file.base_filename.xml_sax ).flow end end @@ -128,7 +141,8 @@ module SiSU_XML_SAX private class Songsheet def initialize(particulars) - @env,@md,@ao_array,@particulars=particulars.env,particulars.md,particulars.ao_array,particulars + @env, @md, @ao_arr, @particulars= + particulars.env,particulars.md,particulars.ao_array,particulars @file=SiSU_Env::FileOp.new(@md) end def song @@ -155,14 +169,15 @@ module SiSU_XML_SAX require_relative 'xhtml_shared' # decide use, whether xml rather than xhtml @@xml={ body: [], open: [], close: [], head: [] } def initialize(particulars) - @env,@md,@ao_array=particulars.env,particulars.md,particulars.ao_array + @env, @md, @ao_arr= + particulars.env,particulars.md,particulars.ao_array @vz=SiSU_Viz::Defaults.new @trans=SiSU_XML_Munge::Trans.new(@md) @sys=SiSU_Env::SystemCall.new end def songsheet pre - @data=markup(@ao_array) + @data=markup(@ao_arr) post publish end @@ -302,7 +317,7 @@ WOK @@xml[:body] << %{#{Ax[:tab]*1}#{Ax[:tab]*1}} @@xml[:body] << %{#{Ax[:tab]*2}#{dob.obj}#{Ax[:tab]*1}} @@xml[:body] << %{#{Ax[:tab]*1}} - @@xml[:body] << "#{Ax[:tab]*0}" + @@xml[:body] << %{#{Ax[:tab]*0}} end def code_structure(dob='') dob=@trans.markup_group(dob) -- cgit v1.2.3 From ca70dde521c90150f8c36ecf83f05c2d952d1712 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 28 Sep 2014 22:07:48 -0400 Subject: v5 v6: header comment reduction, minor --- lib/sisu/v5/xml_sax.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/sisu/v5/xml_sax.rb') diff --git a/lib/sisu/v5/xml_sax.rb b/lib/sisu/v5/xml_sax.rb index fca6afa3..17ff4327 100644 --- a/lib/sisu/v5/xml_sax.rb +++ b/lib/sisu/v5/xml_sax.rb @@ -46,9 +46,6 @@ - * Download: - - * Git -- cgit v1.2.3