aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/xhtml_table.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v5/xhtml_table.rb')
-rw-r--r--lib/sisu/v5/xhtml_table.rb7
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