Serialize dummy text for embeds

This commit is contained in:
Emery Hemingway 2023-03-01 13:16:02 -06:00
parent 075627709f
commit dab8f11b9b
1 changed files with 4 additions and 1 deletions

View File

@ -1378,7 +1378,10 @@ proc writeText*[E](stream: Stream; pr: Preserve[E]) =
write(stream, '}')
of pkEmbedded:
write(stream, "#!")
write(stream, $pr.embed)
when compiles($pr.embed):
write(stream, $pr.embed)
else:
write(stream, "")
proc `$`*[E](pr: Preserve[E]): string =
## Generate the textual representation of ``pr``.