$: do not write #! twice

This commit is contained in:
Emery Hemingway 2024-01-01 16:58:19 +02:00
parent b67e6f089b
commit a83c9ad3a4
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ proc writeText*(stream: Stream; pr: Value; mode = textPreserves) =
writeText(stream, value, mode)
write(stream, '}')
of pkEmbedded:
write(stream, "#!")
if not pr.embedded: write(stream, "#!")
if pr.embeddedRef.isNil:
write(stream, "<null>")
else: