diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-05-03 19:14:10 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-05-03 19:14:10 -0400 |
commit | 65124198251d6e0ac59294f76c30644ad4fac6d5 (patch) | |
tree | dc50da8382c66172f740cd233517c7f7243be23e /lib/sisu/v2/rexml.rb | |
parent | debian/changelog (2.3.1-1) (diff) | |
parent | update: changelog, version (2.3.2) (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v2/rexml.rb')
-rw-r--r-- | lib/sisu/v2/rexml.rb | 9 |
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 |