From edd89902036bde18c91031470e19c871a182cf6d Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 23 Oct 2013 23:40:45 -0400 Subject: v5: options & downstream, more use of opt.act instead of opt.cmd * opt.act.*.set==:on instead of opt.cmd =~/\S/ --- lib/sisu/v5/xml_fictionbook.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/sisu/v5/xml_fictionbook.rb') diff --git a/lib/sisu/v5/xml_fictionbook.rb b/lib/sisu/v5/xml_fictionbook.rb index 05a02c9b..446e12e2 100644 --- a/lib/sisu/v5/xml_fictionbook.rb +++ b/lib/sisu/v5/xml_fictionbook.rb @@ -186,7 +186,7 @@ WOK end def put(line) @file_fictionbook.puts line - puts line if @md.opt.cmd =~/V/ + puts line if @md.opt.act[:verbose_plus][:set]==:on end def structure_build_tag_close(lev,h) @sp=' ' @@ -266,7 +266,7 @@ WOK y="#{@sp*6}<#{@s[6]}>\n#{x[:para]}" @h[0]=6 else - y=if @md.opt.cmd =~/V/; "#{x[:para]}" + y=if @md.opt.act[:verbose_plus][:set]==:on; "#{x[:para]}" else nil end end @@ -291,7 +291,7 @@ WOK @ds[c][:para]=markup(para,'title') else @ds[c]={} - @ds[c][:para]=markup(para) if @md.opt.cmd =~/V/ + @ds[c][:para]=markup(para) if @md.opt.act[:verbose_plus][:set]==:on end c+=1 end -- cgit v1.2.3