nitdoc: changes class name used within dot graphs
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 14 Feb 2012 04:53:22 +0000 (23:53 -0500)
committerJean Privat <jean@pryen.org>
Tue, 14 Feb 2012 16:30:28 +0000 (11:30 -0500)
Avoids conflicts with classes named Edge.

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/nitdoc.nit

index ffb5016..7525f17 100644 (file)
@@ -1275,6 +1275,7 @@ redef class MMLocalClass
                cla.add_all(cshe.greaters_and_self)
 
                var op = new Buffer
+               var name = "class_{name}"
                op.append("digraph {name} \{ rankdir=BT; node[shape=none,margin=0,width=0,height=0,fontsize=10]; edge[dir=none,color=gray]; ranksep=0.2; nodesep=0.1;\n")
                for c in cla do
                        if c == self then