Slightly nicer embedded-value printing
This commit is contained in:
parent
43f31b9a78
commit
f2d9b68329
|
@ -27,7 +27,11 @@ export class Embedded<T> {
|
|||
}
|
||||
|
||||
asPreservesText(): string {
|
||||
return '#!' + (this.embeddedValue as any).asPreservesText();
|
||||
try {
|
||||
return '#!' + (this.embeddedValue as any).asPreservesText();
|
||||
} catch {
|
||||
return '#!' + (this.embeddedValue as any).toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue