Changeset 5502
- Timestamp:
- 11/12/09 18:36:27 (2 years ago)
- Location:
- branches/Release01x00/WysiwygPlugin
- Files:
-
- 2 edited
-
lib/Foswiki/Plugins/WysiwygPlugin/TML2HTML.pm (modified) (2 diffs)
-
test/unit/WysiwygPlugin/TranslatorTests.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/Release01x00/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/TML2HTML.pm
r5308 r5502 197 197 if ( $token eq '%' && $stackTop =~ /}$/ ) { 198 198 while ( scalar(@stack) 199 && $stackTop !~ /^\n?%( [A-Z0-9_:]+){.*}$/os )199 && $stackTop !~ /^\n?%($Foswiki::regex{tagNameRegex}){.*}$/os ) 200 200 { 201 201 $stackTop = pop(@stack) . $stackTop; … … 203 203 } 204 204 if ( $token eq '%' 205 && $stackTop =~ m/^(\n?)%( [A-Z0-9_:]+)({.*})?$/os )205 && $stackTop =~ m/^(\n?)%($Foswiki::regex{tagNameRegex})({.*})?$/os ) 206 206 { 207 207 my $nl = $1; -
branches/Release01x00/WysiwygPlugin/test/unit/WysiwygPlugin/TranslatorTests.pm
r5375 r5502 1315 1315 tml => "fred *%WIKINAME%* fred", 1316 1316 html => "<p>fred <b>$protecton%WIKINAME%$protectoff</b> fred</p>", 1317 }, 1318 { 1319 exec => $TML2HTML | $ROUNDTRIP, 1320 name => 'Item2352', 1321 tml => '%Foo%', 1322 html => "<p>" . $protecton . '%Foo%' . $protectoff . "</p>" 1317 1323 }, 1318 1324 {
Note: See TracChangeset
for help on using the changeset viewer.
