Obscure bug:
- TestWikiWordBug in Sandbox web has a section "test" that uses %TESTPARAM%:
%STARTSECTION{test}%
* param: %TESTPARAM%
%ENDSECTION{test}%
- TestWikiWordBug in Main web has this:
%INCLUDE{ "Sandbox.TestWikiWordBug" section="test" TESTPARAM="Test TWiki.WikiWord bug" }%
- Defective output:
- Expected:
Cause: Gratuitous
)
in regex of
TWiki::_fixupIncludedTopic
, introduced by
Item6840 fix.
--- TWiki.pm (revision 23580)
+++ TWiki.pm (working copy)
@@ -2194,7 +2194,7 @@
# Prefix web name to WikiWord to make links work, such as:
# 'TopicName' to 'Web.TopicName'
# TWikibug:Item6840: Exclude 'WikiWordWeb.TopicName' using translation token
- $text =~ s/(?:^|(?<=[\s(]))($regex{webNameRegex}\.($regex{wikiWordRegex}|$regex{abbrevRegex}))/-$TranslationToken$1)/go;
+ $text =~ s/(?:^|(?<=[\s(]))($regex{webNameRegex}\.($regex{wikiWordRegex}|$regex{abbrevRegex}))/-$TranslationToken$1/go;
$text =~ s#(?:^|(?<=[\s(]))($regex{wikiWordRegex})#$fromWeb.$1#go;
$text =~ s/-$TranslationToken//go;
}
--
TWiki:Main/PeterThoeny
- 2012-10-13