NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item11746 for general documentation changes for release 1.1.6. Use
Item9693 for docu changes for release 1.2 and 2.0.
Item5527: JHotDrawPlugin does not handle hierachical Webs in image maps
Problem
I noticed thatTWikiDraw Plugin does not handle hierachical Webs and also is not nice with non
WikiWord topics, which it should allow IMHO.
Suggested Solution
In
JHotDrawPlugin.pm you find this code:
my $map = TWiki::Func::readFile($mapFile);
# Unashamed hack to handle Web.TopicName links
$map =~ s/href=\"((\w+)\.)?(\w+)(#\w+)?\"/&_processHref($2,$3,$4,$web)/ge;
$map = TWiki::Func::expandCommonVariables( $map, $topic );
$map =~ s/%MAPNAME%/$mapname/g;
I suggest changing the regexp to:
$map =~ s/href=\"(($TWiki::regex{webNameRegex})\.)?([^"#]+)(#$TWiki::regex{wikiWordRegex})?\"/&_processHref($2,$3,$4,$web)/ge;
Sorry if this is not the correct place or style to report this issue
--
TWiki:Main/StefanAlthoefer - 12 Apr 2008
Done