diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-09-03 21:46:47 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-09-03 21:46:47 +0100 |
commit | 2cd558f67f44cca787013c02b665533b97c90f0e (patch) | |
tree | b3b596e2d094014b897dabd1c93e91623b1663d0 /lib/sisu/v0/dal_doc_str_tables.rb | |
parent | sisu-0.57.0 md5s (diff) |
sisu-0.58 work towards making it possible to describe sisu and sisu markup within sisu
Diffstat (limited to 'lib/sisu/v0/dal_doc_str_tables.rb')
-rw-r--r-- | lib/sisu/v0/dal_doc_str_tables.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v0/dal_doc_str_tables.rb b/lib/sisu/v0/dal_doc_str_tables.rb index 2c128570..e0d019bb 100644 --- a/lib/sisu/v0/dal_doc_str_tables.rb +++ b/lib/sisu/v0/dal_doc_str_tables.rb @@ -131,13 +131,13 @@ module SiSU_document_structure_tables if para =~/^\{(?:t|table)(?:~h)?(?:\sc\d+;)?[\d; ]*\}/ @tuned_file << table_visual(para) @tuned_file=@tuned_file.flatten - elsif @@flag['table_to'] or para[/table\{(?:~h)?/] + elsif @@flag['table_to'] or para[/^table\{(?:~h)?/] if para[/table\{(?:~h)?\s+c(\d+;.+)/] instructions=$1 @@column=instructions.split(/;\s*/) @@columns=@@column[0] - para.gsub!(/table\{~h\s+(c\d+?;.+?)$/,'<!Th¡ \1!>') - para.gsub!(/table\{\s+(c\d+?;.+?)$/,'<!T¡ \1!>') + para.gsub!(/^table\{~h\s+(c\d+?;.+?)$/,'<!Th¡ \1!>') + para.gsub!(/^table\{\s+(c\d+?;.+?)$/,'<!T¡ \1!>') @@flag['table_to']=true end if @@flag['table_to'] and para =~/\}table/ |