aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v6/xhtml_table.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-10-12 10:46:48 -0400
committerRalph Amissah <ralph@amissah.com>2014-10-12 10:46:48 -0400
commit53b74bac29e476d4000b76d10acc0c31e2376669 (patch)
tree0624c1e81d661c6f1296e66679b9e9cd29debaac /lib/sisu/v6/xhtml_table.rb
parentv5 v6: html, epub, set document body language (diff)
v6: '*_parts', remove defaults.rb & some relics related to sisu skins, long gone
* old code removed & substituted as required by *_parts * attending code changes, fairly wide ranging, test
Diffstat (limited to 'lib/sisu/v6/xhtml_table.rb')
-rw-r--r--lib/sisu/v6/xhtml_table.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/sisu/v6/xhtml_table.rb b/lib/sisu/v6/xhtml_table.rb
index bfaed250..8df539aa 100644
--- a/lib/sisu/v6/xhtml_table.rb
+++ b/lib/sisu/v6/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