Added anchor name to display()

This commit is contained in:
Felix Krause 2017-02-14 19:43:02 +01:00
parent c581f1acc2
commit 8b4f781d41
1 changed files with 1 additions and 0 deletions

View File

@ -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].} =