diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-12-08 01:45:13 +0000 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-12-08 01:45:13 +0000 |
commit | 084d10a94dd5a62b09de69ad95971f579097f07e (patch) | |
tree | 11760cb2633997d93f14110e353aef1d64da02fd /lib/sisu/v0/dal_doc_str_tables.rb | |
parent | gpl links updated and added link to plaintext as allows for convenient use of... (diff) |
changelog and version updated
Diffstat (limited to 'lib/sisu/v0/dal_doc_str_tables.rb')
-rw-r--r-- | lib/sisu/v0/dal_doc_str_tables.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v0/dal_doc_str_tables.rb b/lib/sisu/v0/dal_doc_str_tables.rb index 280a280a..d1ba776a 100644 --- a/lib/sisu/v0/dal_doc_str_tables.rb +++ b/lib/sisu/v0/dal_doc_str_tables.rb @@ -83,8 +83,8 @@ module SiSU_document_structure_tables @row[count]=row.split(/\|/) end @row.compact! - widths=if @row[0].to_s =~/^\{(?:t|table)(?:~h)?\s+\d+;/ - col_width=@row[0].to_s.scan(/\d+/) + widths=if @row[0].join =~/^\{(?:t|table)(?:~h)?\s+\d+;/ + col_width=@row[0].join.scan(/\d+/) rem=(100 - col_width[0].to_i) col_w=rem/(@row[1].length - 1) "#{col_width[0].to_s};" + ("#{col_w};" * (@row[1].length-1)) |