diff trunk/src/docgen/graphutils/dotwriter.d @ 449:757bd048482c

Depgraph test + minor modifications.
author Jari-Matti M?kel? <jmjm@iki.fi>
date Wed, 17 Oct 2007 20:35:56 +0300
parents c82b36b9cadf
children 3f44c38bf870
line wrap: on
line diff
--- a/trunk/src/docgen/graphutils/dotwriter.d	Wed Oct 17 19:23:56 2007 +0300
+++ b/trunk/src/docgen/graphutils/dotwriter.d	Wed Oct 17 20:35:56 2007 +0300
@@ -8,6 +8,7 @@
 import tango.io.FileConduit : FileConduit;
 import tango.io.Print: Print;
 import tango.text.convert.Layout : Layout;
+import tango.io.FilePath;
 
 /**
  * Creates a graph rule file for the dot utility.
@@ -35,6 +36,7 @@
     if (cast(FileConduit)outputs[1]) {
       // name of the .dot file
       char[] fn = (cast(FileConduit)outputs[1]).toUtf8();
+      fn = FilePath(fn).file;
 
       // .dot -> .svg/.png/.gif/...
       fn = fn[0..$-3] ~ imageFormatExts[factory.options.graph.imageFormat];