aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-08-31 11:06:21 -0400
committerRalph Amissah <ralph@amissah.com>2010-08-31 11:06:21 -0400
commit09434ed271b45b1a58d4621cb5e88f28df7ebb6b (patch)
tree7b601ade9f4d7780c62d8ee2554be836d4c3c12c
parenthtml headers do not include the "title" field, fix (Closes: #594949) (diff)
param, remove redundancy in fix
-rw-r--r--lib/sisu/v2/param.rb24
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*$/