diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-08-31 11:06:21 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-09-22 09:52:45 -0400 |
commit | 59134324ffc1a4aa824559032fa9a26384985894 (patch) | |
tree | 4b9aea071bf068c32adf3a187f973a1f4a3a533c | |
parent | html headers do not include the "title" field, fix (Closes: #594949) (diff) |
param, remove redundancy in fix
-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*$/ |