diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-10-12 10:52:35 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-10-12 10:52:35 -0400 |
commit | 32fd8f3908bc8632e2d8ab4d872f6e4362fe031b (patch) | |
tree | 8094371a7fd511409992200f4b7c1cb4c33582d6 /lib/sisu/v5/xhtml_table.rb | |
parent | v6: '*_parts', remove defaults.rb & some relics related to sisu skins, long gone (diff) |
v5: merge v6: remove defaults.rb & some relics related to sisu skinssisu_5.7.0
Diffstat (limited to 'lib/sisu/v5/xhtml_table.rb')
-rw-r--r-- | lib/sisu/v5/xhtml_table.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/sisu/v5/xhtml_table.rb b/lib/sisu/v5/xhtml_table.rb index 33e4f48e..5e6b2c57 100644 --- a/lib/sisu/v5/xhtml_table.rb +++ b/lib/sisu/v5/xhtml_table.rb @@ -58,12 +58,13 @@ =end module SiSU_XHTML_Table - require_relative 'defaults' # defaults.rb + require_relative 'xhtml_parts' # xhtml_parts.rb class TableXHTML + include SiSU_Parts_XHTML @@tablehead=0 @@tablefoot=[] #watch def initialize(table) - @table_obj,@vz=table,SiSU_Viz::Defaults.new + @table_obj=table end def table table_obj=@table_obj @@ -80,7 +81,7 @@ module SiSU_XHTML_Table trc,nc=[],0 table_row_with_columns.each do |c| c=c.gsub(/^~$/,''). # tilde / empty cell - gsub(/<:br>/,'<br />') + gsub(/<:br>/,the_line_break) trc <<= if table_obj.head_ and nr==0; %{<th width="#{table_obj.widths[nc]}%">#{c}</th>} else %{<td width="#{table_obj.widths[nc]}%">#{c}</td>} end |