Skip to content

Commit 23aa823

Browse files
committed
Add a simpler test for empty HTML-like labels
See https://gitlab.com/graphviz/graphviz/-/issues/2727
1 parent 0b486dd commit 23aa823

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

packages/lang-dot/test/graph.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,22 @@ Graph(Header(Graphtype(graph), HTMLString(HTMLStringContent)), Body(
266266
))
267267

268268

269+
# Empty HTML-like string
270+
271+
graph { a[label=<>] }
272+
273+
==>
274+
275+
Graph(Header(...), Body(
276+
SimpleStatement(
277+
Node(Name(...)),
278+
Attributes(
279+
Attribute(AttributeName(...), AttributeValue(HTMLString(HTMLStringContent)))
280+
)
281+
)
282+
))
283+
284+
269285
# Multi-line strings
270286

271287
graph {

0 commit comments

Comments
 (0)