From 09434ed271b45b1a58d4621cb5e88f28df7ebb6b Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 31 Aug 2010 11:06:21 -0400 Subject: param, remove redundancy in fix --- lib/sisu/v2/param.rb | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/lib/sisu/v2/param.rb b/lib/sisu/v2/param.rb index 59a6b02e..bdd5c2e4 100644 --- a/lib/sisu/v2/param.rb +++ b/lib/sisu/v2/param.rb @@ -1019,22 +1019,18 @@ module SiSU_Param @lvs[6]=1 end if para =~ /^:A~/ #% processing - if para=~/^:A~/ - if @markup.nil? \ - or @markup.empty? - @markup=@markup_version.determined.to_s - elsif @markup !~/0\.38/; @markup=@markup.strip + "; #{@markup_version.determined}" - end + if @markup.nil? \ + or @markup.empty? + @markup=@markup_version.determined.to_s + elsif @markup !~/0\.38/; @markup=@markup.strip + "; #{@markup_version.determined}" end - if para=~/^:A~/ - if not defined? @title.full.nil? - tf=para[/^:A~\S*(.+)$/m,1] - tf="@title: #{tf}" - @title=Md.new(tf.strip,@opt,@env).title - end - @html_title=@title.full.gsub(/(

|

|
|
)/,'') - SiSU_Screen::Ansi.new(@cmd,'Parameters',@html_title).txt_grey if @cmd =~/v/ + if not defined? @title.full.nil? + tf=para[/^:A~\S*(.+)$/m,1] + tf="@title: #{tf}" + @title=Md.new(tf.strip,@opt,@env).title end + @html_title=@title.full.gsub(/(

|

|
|
)/,'') + SiSU_Screen::Ansi.new(@cmd,'Parameters',@html_title).txt_grey if @cmd =~/v/ end if not @book_idx \ and para =~/^=\{(.+?)\}\s*$/ -- cgit v1.2.3