Opened 6 years ago

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

Reported by: Owned by: sra@… Ryan J Ollos low GraphvizPlugin minor 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.

comment:1 Changed 6 years ago by Ryan J Ollos

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

comment:2 Changed 6 years ago by Ryan J Ollos

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 6 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 6 years ago by Ryan J Ollos

Owner: changed from Peter Kropf to Ryan J Ollos

Modify Ticket

Change Properties