don't add an extra node if endrank == end->rank
Tara L Andrews [Mon, 16 Jan 2012 13:54:33 +0000 (14:54 +0100)]
lib/Text/Tradition/Collation.pm

index 6891065..85c2360 100644 (file)
@@ -362,6 +362,7 @@ sub as_dot {
        }
        if( defined $endrank ) {
                return if $endrank < 0;
+               $endrank = undef if $endrank == $self->end->rank;
        }
        
     # TODO consider making some of these things configurable