Number: 369
Title: The use of unflatten removes quotes around labels "Graph" and "Edge" leading to parse errors from dot.
Submitter: Colin Woodford
Date: 23rd October 2003
Subsys: unflatten
Version: 1.9
System: Sun Blade 100/Solaris/2.8
Severity: minor, can workaround
Problem:
The use of unflatten removes quotes around labels "Graph" and "Edge" leading to parse errors from dot.

# Input file with Graph, graph, Edge and edge labels.
$ cat /tmp/b
digraph test {
	Graph [URL="Graph.html", label="Graph"];
	graph [URL="graph.html", label="graph"];
	Edge [URL="Edge.html", label="Edge"];
	edge [URL="edge.html", label="edge"];
}

# Removed quotes for Graph and Edge labels, unchanged for graph and edge labels $ cat /tmp/b | unflatten digraph test { graph [URL="graph.html", label="graph" ]; edge [URL="edge.html", label="edge" ]; Graph [URL="Graph.html", label=Graph]; Edge [URL="Edge.html", label=Edge]; }

# Leads to parse error when processed by dot $ cat /tmp/b | unflatten | dot -Tsvg -o /tmp/b.svg <stdin>:9: parse error near line 9 context: >>> label=Graph <<< ];
Input:

digraph test {
	Graph [URL="Graph.html", label="Graph"];
	graph [URL="graph.html", label="graph"];
	Edge [URL="Edge.html", label="Edge"];
	edge [URL="edge.html", label="edge"];
}

# Removed quotes for Graph and Edge labels, unchanged for graph and edge labels
$ cat /tmp/b  | unflatten
digraph test {
	graph [URL="graph.html",
		label="graph"
	];
	edge [URL="edge.html",
		label="edge"
	];
	Graph	 [URL="Graph.html",
		label=Graph];
	Edge	 [URL="Edge.html",
		label=Edge];
}
</CD>
Comments: Can workaround by using different labels, problem may also exist for "NodeId" label.
Fix: Can workaround by using different labels
Owner: erg
Status: Fixed (23 October 2003)