aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/rexml.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v2/rexml.rb')
-rw-r--r--lib/sisu/v2/rexml.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/sisu/v2/rexml.rb b/lib/sisu/v2/rexml.rb
index 082e99d3..dc599e64 100644
--- a/lib/sisu/v2/rexml.rb
+++ b/lib/sisu/v2/rexml.rb
@@ -90,12 +90,10 @@ module SiSU_Rexml
xmlfile=IO.readlines(@fnap,'').join
begin
@xmldoc=REXML::Document.new xmlfile
- tell=SiSU_Screen::Ansi.new(@md.cmd,'invert','REXML',"XML document #{@fnap} loaded") #% tell
- tell.colorize unless @md.cmd =~/q/
+ SiSU_Screen::Ansi.new(@md.cmd,'invert','REXML',"XML document #{@fnap} loaded").colorize unless @md.cmd =~/q/ #% tell
if @md.cmd =~ /v/i #% substantive text
@xmldoc.elements.each(@e_head) do |e|
- tell=SiSU_Screen::Ansi.new(@md.cmd,'brown',e)
- tell.colorize unless @md.cmd =~/q/
+ SiSU_Screen::Ansi.new(@md.cmd,'brown',e).colorize unless @md.cmd =~/q/
end
end
rescue REXML::ParseException
@@ -103,8 +101,7 @@ module SiSU_Rexml
end
end
else
- tell=SiSU_Screen::Ansi.new(@md.cmd,'fuschia',"File Not Found #{xmlfile}",'requested XML processing skipped')
- tell.colorize unless @md.cmd =~/q/
+ SiSU_Screen::Ansi.new(@md.cmd,'fuschia',"File Not Found #{xmlfile}",'requested XML processing skipped').colorize unless @md.cmd =~/q/
exit
end
rescue; SiSU_Errors::Info_error.new($!,$@,@md.cmd,@md.fns).error