Ignore:
Timestamp:
05/12/09 20:08:26 (3 years ago)
Author:
MichaelTempest
Message:

Item1397: Add a space to the start or end of text in a table, when needed, so that TML is recognised near the | in table markup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/TML2HTML.pm

    r3875 r3896  
    788788        } 
    789789 
    790         push( @tr, { fn => $fn, attr => $attr, text => $cell } ); 
     790        $cell = ' '.$cell if $cell =~ /^(?:\*|==?|__?)[^\s]/; 
     791        $cell = $cell.' ' if $cell =~ /[^\s](?:\*|==?|__?)$/; 
     792 
     793        push( @tr, { fn => $fn, attr => $attr, text => $cell } );  
    791794    } 
    792795 
Note: See TracChangeset for help on using the changeset viewer.