Subject: | Graph::Writer::Dot round-trip of graph name with spaces |
Date: | Sun, 24 May 2015 15:54:49 +1000 |
To: | bug-Graph-ReadWrite [...] rt.cpan.org |
From: | Kevin Ryde <user42_kevin [...] yahoo.com.au> |
In Graph-ReadWrite 2.07 on recent debian i386 perl 5.20.2, if
Graph::Reader::Dot reads a foo.dot like below which has a space in the
graph name then the output of Graph::Writer::Dot does not re-write the
necessary quotes around the name.
For example foo.pl and foo.dot below gives
one-two
digraph Hello World
{
/* list of nodes */
"one";
"two";
/* list of edges */
"one" -> "two";
}
$_[0]->YYCurtok ID
$_[0]->YYCurval World
@$_[0]->YYExpect {
$_[0]->YYLexer CODE(0x8a40e6c)
substr($_[0]->YYData->{INPUT},0,21) ...
Syntax error.
where I hoped a Reader -> Writer -> Reader round-trip would succeed.
The string quoting at
http://www.graphviz.org/doc/info/lang.html
says literal " as \" too, if that would be a shared subroutine for
vertex etc too. Not sure if Graph::Reader::Dot decodes \" as such, but
if the Graph.pm attributes are used by others than could be any string
in the name.
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.