From 05a3fd233ec1ac4475bd797449d1284f6824c005 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 1 Mar 2011 20:41:28 -0500 Subject: v3: ruby 1.9 hash symbol syntax adopted --- lib/sisu/v3/xml.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/sisu/v3/xml.rb') diff --git a/lib/sisu/v3/xml.rb b/lib/sisu/v3/xml.rb index e5cc9374..9b9bc3f5 100644 --- a/lib/sisu/v3/xml.rb +++ b/lib/sisu/v3/xml.rb @@ -119,7 +119,7 @@ module SiSU_XML_SAX include SiSU_text_utils require_relative 'css' # css.rb require_relative 'shared_xhtml' # decide use, whether xml rather than xhtml - @@xml={ :body=>[],:open=>[],:close=>[],:head=>[] } + @@xml={ body: [], open: [], close: [], head: [] } def initialize(particulars) @env,@md,@dal_array=particulars.env,particulars.md,particulars.dal_array @vz=SiSU_Env::Get_init.instance.skin @@ -353,11 +353,11 @@ WOK end elsif dob.obj =~/(#{Mx[:br_eof]}|#{Mx[:br_endnotes]})/ elsif dob.obj =~/MetaData/ - txt_obj={:txt =>'
MetaData'} + txt_obj={ txt: '
MetaData' } format_scroll=Format_scroll.new(@md,txt_obj) dob.obj=format_scroll.bold_para elsif dob.obj =~/(Owner Details)/ -# txt_obj={:txt =>'
Owner Details'} +# txt_obj={ txt: '
Owner Details' } # format_scroll=Format_scroll.new(@md,txt_obj) # @@xml[:owner_details]=format_scroll.bold_para dob.obj='' @@ -368,7 +368,7 @@ WOK end if dob.obj =~/.*<:#>.*$/ #investigate removal dob.obj=if dob.obj =~ /#{Mx[:pa_o]}:i[1-9]#{Mx[:pa_c]}/ - txt_obj={:txt =>dob} + txt_obj={ txt: dob } format_text=Format_text_object.new(@md,txt_obj) format_text.scr_inden_ocn_e_no_paranum end -- cgit v1.2.3