Modify

Opened 2 years ago

Last modified 2 years ago

#9992 new defect

Graphviz plugin gets confused by whitespace around equal signs in URL attributes

Reported by: sra@… Owned by: rjollos
Priority: low Component: GraphvizPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.11

Description

The dot language allows both

  foo [URL="wiki:FooBar"];

and

  foo [URL = "wiki:FooBar"];

Some of us prefer the latter form for readability. :)

The plugin appears to get confused by the whitespace: without the whitespace, it correctly generates a link to the wiki page FooBar, while without the whitespace it just passes the URL "wiki:FooBar?" through to the browser, which then whines about not knowing the "wiki:" scheme.

Workaround, obviously enough, is to elide the whitespace, but it would be nice if the plugin followed the same rules as graphviz here.

Attachments (0)

Change History (4)

comment:1 Changed 2 years ago by rjollos

Which directory did you install from? trunk or one of the tags?: graphvizplugin.

comment:2 Changed 2 years ago by rjollos

Here is the code that determines the behavior. It should be an easy fix. Which Trac version are you on? I want to make sure that if I make a change to the trunk, you'll be able to use that version with your Trac install.

comment:3 Changed 2 years ago by sra@…

I'm using FreeBSD port /usr/ports/www/trac-graphviz on FreeBSD 8-STABLE, package trac-graphviz-0.7.4_5 (graphvizplugin-0.7.4.tar.gz) with 0.12.3 (also from FreeBSD ports).

Don't worry too much about making sure I can pick this up, I tend to stick to the FreeBSD ports system and am not likely to upgrade until it does. I know the workaround now, I was reporting the problem primarily so that it will get fixed before it bites somebody else.

comment:4 Changed 2 years ago by rjollos

  • Owner changed from pkropf to rjollos

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.