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/test/unit/WysiwygPlugin/TranslatorTests.pm

    r3875 r3896  
    230230    }, 
    231231    { 
    232         exec => $HTML2TML | $ROUNDTRIP, 
     232        exec => $HTML2TML, 
    233233        name => 'ttClassInTable', 
    234234        html => '<table><tr><td class="WYSIWYG_TT">Code</td></tr></table>', 
    235235        tml  => '| =Code= |' 
     236    }, 
     237    { 
     238        exec => $TML2HTML | $ROUNDTRIP, 
     239        name => 'tmlInTable', 
     240        html => <<'BLAH', 
     241<table cellspacing="1" cellpadding="0" border="1"> 
     242<tr><td> <span class="WYSIWYG_TT">Code</span> </td></tr> 
     243<tr><td> <span class="WYSIWYG_TT">code</span> at start</td></tr> 
     244<tr><td>ends with <span class="WYSIWYG_TT">code</span> </td></tr> 
     245 
     246<tr><td> <b><span class="WYSIWYG_TT">Code</span></b> </td></tr> 
     247<tr><td> <b><span class="WYSIWYG_TT">code</span></b> at start</td></tr> 
     248<tr><td>ends with <b><span class="WYSIWYG_TT">code</span></b> </td></tr> 
     249 
     250<tr><td> <i>Emphasis</i> </td></tr> 
     251<tr><td> <i>emphasis</i> at start</td></tr> 
     252<tr><td>ends with <i>emphasis</i> </td></tr> 
     253 
     254<tr><td> <b><i>Emphasis</i></b> </td></tr> 
     255<tr><td> <b><i>emphasis</i></b> at start</td></tr> 
     256<tr><td>ends with <b><i>emphasis</i></b> </td></tr> 
     257 
     258<tr><td> <b>bold</b> at start</td></tr> 
     259<tr><td>ends with <b>bold</b> </td></tr> 
     260</table> 
     261BLAH 
     262        tml  => <<'BLAH', 
     263| =Code= | 
     264| =code= at start | 
     265| ends with =code= | 
     266| ==Code== | 
     267| ==code== at start | 
     268| ends with ==code== | 
     269| _Emphasis_ | 
     270| _emphasis_ at start | 
     271| ends with _emphasis_ | 
     272| __Emphasis__ | 
     273| __emphasis__ at start | 
     274| ends with __emphasis__ | 
     275| *bold* at start | 
     276| ends with *bold* | 
     277BLAH 
    236278    }, 
    237279    { 
Note: See TracChangeset for help on using the changeset viewer.