aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-06-11 21:37:22 -0400
committerRalph Amissah <ralph@amissah.com>2010-06-11 21:37:22 -0400
commit15a3a15a549853ac0d7c3f1e81a10f9badb9069a (patch)
tree552ca2da080356f6583aaca65353c32529ddc0f4
parentcss (for html), right pane dark, distinguish from selected content (diff)
minor (cosmetic, & info retention)
-rw-r--r--lib/sisu/v2/constants.rb2
-rw-r--r--lib/sisu/v2/xml_tables.rb8
2 files changed, 3 insertions, 7 deletions
diff --git a/lib/sisu/v2/constants.rb b/lib/sisu/v2/constants.rb
index 7fc3b056..9eec8370 100644
--- a/lib/sisu/v2/constants.rb
+++ b/lib/sisu/v2/constants.rb
@@ -110,7 +110,7 @@ Rx[:lv],Rx[:lv_1],Rx[:lv_2],Rx[:lv_3],Rx[:lv_4],Rx[:lv_5],Rx[:lv_6],Rx[:lv_7],Rx
Rx[:meta]=/#{Mx[:meta_o]}(\S+?)#{Mx[:meta_c]}/
Dx[:url_o]='‹'; Dx[:url_c]='›'
Dx[:url_o_xml]='&lt;'; Dx[:url_c_xml]='&gt;'
-Dx[:rel_o]='‹'; Dx[:rel_c]='›'
+Dx[:rel_o]='‹'; Dx[:rel_c]='›' # Dx[:rel_o]='「'; Dx[:rel_c]='」'
Tex[:backslash]="\\\\"
Tex[:backslash]="\\\\"
Tex[:tilde]='\\\\\\~'
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