Subject: | Graph::Easy->as_boxart hangs if a node contains a newline. |
This example script hangs in the as_boxart method:
use strict;
use warnings;
use lib 'lib';
binmode STDOUT, ':encoding(UTF-8)';
use Graph::Easy;
my $g = Graph::Easy->new({ undirected => 1});
$g->add_edge("a\nx", "b", "label1");
print $g->as_boxart;
It repeats these warnings:
Use of uninitialized value $part in substitution (s///) at lib/Graph/Easy/Node.pm line 600.
Use of uninitialized value $part in substitution (s///) at lib/Graph/Easy/Node.pm line 601.
Use of uninitialized value $part in substitution (s///) at lib/Graph/Easy/Node.pm line 602.
Use of uninitialized value $part in substitution (s///) at lib/Graph/Easy/Node.pm line 603.
Tested in versions 0.71 and 0.76.