Serialize dummy text for embeds
This commit is contained in:
parent
075627709f
commit
dab8f11b9b
|
@ -1378,7 +1378,10 @@ proc writeText*[E](stream: Stream; pr: Preserve[E]) =
|
||||||
write(stream, '}')
|
write(stream, '}')
|
||||||
of pkEmbedded:
|
of pkEmbedded:
|
||||||
write(stream, "#!")
|
write(stream, "#!")
|
||||||
write(stream, $pr.embed)
|
when compiles($pr.embed):
|
||||||
|
write(stream, $pr.embed)
|
||||||
|
else:
|
||||||
|
write(stream, "…")
|
||||||
|
|
||||||
proc `$`*[E](pr: Preserve[E]): string =
|
proc `$`*[E](pr: Preserve[E]): string =
|
||||||
## Generate the textual representation of ``pr``.
|
## Generate the textual representation of ``pr``.
|
||||||
|
|
Loading…
Reference in New Issue