mirror of https://github.com/status-im/NimYAML.git
Added anchor name to display()
This commit is contained in:
parent
c581f1acc2
commit
8b4f781d41
|
@ -1095,6 +1095,7 @@ proc renderAttrs(p: YamlParser, tag: TagId, anchor: AnchorId): string =
|
||||||
result = " !!" & tagUri[yamlTagRepositoryPrefix.len..^1]
|
result = " !!" & tagUri[yamlTagRepositoryPrefix.len..^1]
|
||||||
else:
|
else:
|
||||||
result = " !<" & tagUri & ">"
|
result = " !<" & tagUri & ">"
|
||||||
|
if anchor != yAnchorNone: result &= " &" & p.anchorName(anchor)
|
||||||
|
|
||||||
proc display*(p: YamlParser, event: YamlStreamEvent): string
|
proc display*(p: YamlParser, event: YamlStreamEvent): string
|
||||||
{.raises: [KeyError].} =
|
{.raises: [KeyError].} =
|
||||||
|
|
Loading…
Reference in New Issue