Ignore:
Timestamp:
09/15/09 21:35:59 (3 years ago)
Author:
MichaelTempest
Message:

Item1980: Fix the sticky-inside-verbatim case by noting that there is no need to encode the characters for $TT0, $TT1 and TT2 - they should all be removed by the end of the conversion.

Added an explicit check to ensure that there are no more of $TT0, $TT1 and $TT2 after conversion to HTML completes, and throw an exception if it there is. That gives users a chance to save their work.

File:
1 edited

Legend:

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

    r4930 r4941  
    555555 
    556556    # Look for combinations of sticky and other markup that cause problems together 
    557     for my $tag ('verbatim', 'literal', keys %xmltag) { 
     557    for my $tag ('literal', keys %xmltag) { 
    558558        while ($text =~ /<$tag\b[^>]*>(.*?)<\/$tag>/gsi) { 
    559559            my $inner = $1; 
Note: See TracChangeset for help on using the changeset viewer.