From 2da35997e8a74068821a6b4c52cd5eac7240874c Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 11 Jun 2010 22:00:33 -0400 Subject: table, (xhtml, odf): empty cell (single tilde to indicate); allow line breaks --- lib/sisu/v2/odf_format.rb | 1 + lib/sisu/v2/xhtml_table.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/sisu/v2/odf_format.rb b/lib/sisu/v2/odf_format.rb index f0163f81..384b46b7 100644 --- a/lib/sisu/v2/odf_format.rb +++ b/lib/sisu/v2/odf_format.rb @@ -147,6 +147,7 @@ module SiSU_ODF_format 'Table_20_Heading' else 'P7' end + str.gsub!(/^~$/,'') # tilde / empty cell %{#{@br}} + %{#{@br}} + %{#{str}} + diff --git a/lib/sisu/v2/xhtml_table.rb b/lib/sisu/v2/xhtml_table.rb index 2b0cb5e7..25db60c8 100644 --- a/lib/sisu/v2/xhtml_table.rb +++ b/lib/sisu/v2/xhtml_table.rb @@ -78,6 +78,8 @@ module SiSU_XHTML_table table_row_with_columns=table_row.split(Mx[:tc_p]) trc,nc=[],0 table_row_with_columns.each do |c| + c.gsub!(/^~$/,'') # tilde / empty cell + c.gsub!(/<:br>/,'
') trc <<= if table_obj.head_ and nr==0; %{#{c}} else %{#{c}} end -- cgit v1.2.3