• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6756: Anchors not working if title is longer than 32 characters

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension FlowchartPlugin Normal Closed   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

If your text is longer than 32 characters the anchors in the SVG image are not working anymore. The plugin doesn't do anything with long text. To fix this add the following to FlowchartPlugin.pm

$anchor = substr($anchor, 0, 32);

after on line 606/607

my $anchor = $title;
$anchor =~ s/[^a-zA-Z0-9]/_/g;  $anchor =~ s/_+/_/g;  $anchor =~ s/(^_*|_*$)//g;

-- TWiki:Main.TimmoVerlaan - 2011-06-16

Timmo reported this in TWiki:Plugins.FlowchartPluginDev

-- TWiki:Main/PeterThoeny - 2011-06-17

This is now in SVN trunk and 5.0 branch, and uploaded to twiki.org repository as well.

-- TWiki:Main.PeterThoeny - 2011-06-17

ItemTemplate
Summary Anchors not working if title is longer than 32 characters
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4
SVN Range TWiki-5.1.0-trunk, Mon, 13 Jun 2011, build 21497
AppliesTo Extension
Component FlowchartPlugin
Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:21528 TWikirev:21529 TWikirev:21530 TWikirev:21531
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2011-06-17 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback