diff options
-rw-r--r-- | lib/sisu/v2/param.rb | 24 |
1 files 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(/(<p>|<p \/>|<br>|<br \/>)/,'') - 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(/(<p>|<p \/>|<br>|<br \/>)/,'') + SiSU_Screen::Ansi.new(@cmd,'Parameters',@html_title).txt_grey if @cmd =~/v/ end if not @book_idx \ and para =~/^=\{(.+?)\}\s*$/ |