aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/xml_tables.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v2/xml_tables.rb')
-rw-r--r--lib/sisu/v2/xml_tables.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/sisu/v2/xml_tables.rb b/lib/sisu/v2/xml_tables.rb
index f5b2845c..71bcb37e 100644
--- a/lib/sisu/v2/xml_tables.rb
+++ b/lib/sisu/v2/xml_tables.rb
@@ -142,9 +142,7 @@ module SiSU_Tables
#{tablefoot}}
end
def table_row(inf,h=false)
- bold=if h; '<b>'
- else ''
- end
+ bold=h ? '<b>' : ''
%{
<tr>
<td width="#{inf}%" valign="top">#{bold}}
@@ -155,9 +153,7 @@ module SiSU_Tables
end
end
def table_row_close(h=false)
- bold_close=if h; '</b>'
- else ''
- end
+ bold_close=h ? '<b>' : ''
"#{bold_close}</td></tr>"
end
def table