From 30a3efda58cdf10219bdbf4453354d7d07b2bcad Mon Sep 17 00:00:00 2001
From: Joey Hess <joey@kitenet.net>
Date: Wed, 18 Apr 2012 15:36:27 -0400
Subject: [PATCH] graphviz: Handle self-links.

---
 IkiWiki/Plugin/graphviz.pm | 1 +
 debian/changelog           | 1 +
 2 files changed, 2 insertions(+)

diff --git a/IkiWiki/Plugin/graphviz.pm b/IkiWiki/Plugin/graphviz.pm
index b9f997e04..d4018edaa 100644
--- a/IkiWiki/Plugin/graphviz.pm
+++ b/IkiWiki/Plugin/graphviz.pm
@@ -132,6 +132,7 @@ sub graph (@) {
 		}, "text");
 		$p->parse($src);
 		$p->eof;
+		$s=~s/\[ href= \]//g; # handle self-links
 		$params{src}=$s;
 	}
 	else {
diff --git a/debian/changelog b/debian/changelog
index 0aca37032..689197aea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -22,6 +22,7 @@ ikiwiki (3.20120204) UNRELEASED; urgency=low
     a bug, and makes pagenames more consistent with the pagespec used
     in the pages parameter. (smcv)
   * link: Fix renaming wikilinks that contain embedded urls.
+  * graphviz: Handle self-links.
 
  -- Joey Hess <joeyh@debian.org>  Wed, 21 Mar 2012 14:33:14 -0400
 
-- 
2.39.5