on second thought, i want these to stay \n

This commit is contained in:
Dustin Swan 2026-04-06 19:54:31 -06:00
parent 99ee0da8c1
commit d24155e47f
No known key found for this signature in database
GPG key ID: 30D46587E2100467

View file

@ -243,7 +243,7 @@ export function prettyPrint(ast: AST, indent = 0): string {
const escaped = val.value const escaped = val.value
.replace(/\\/g, '\\\\') .replace(/\\/g, '\\\\')
.replace(/"/g, '\\"') .replace(/"/g, '\\"')
// .replace(/\n/g, '\\n') .replace(/\n/g, '\\n')
.replace(/\t/g, '\\t'); .replace(/\t/g, '\\t');
return `"${escaped}"`; return `"${escaped}"`;
} }