diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-06-11 22:00:33 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-06-11 22:00:33 -0400 |
commit | 2da35997e8a74068821a6b4c52cd5eac7240874c (patch) | |
tree | c13fecc7aead2ddbcc5b811841552bb451a32d8d /lib/sisu/v2/xhtml_table.rb | |
parent | texpdf_format: add fontface to tables (diff) |
table, (xhtml, odf): empty cell (single tilde to indicate); allow line breaks
Diffstat (limited to 'lib/sisu/v2/xhtml_table.rb')
-rw-r--r-- | lib/sisu/v2/xhtml_table.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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>/,'<br />') 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 |