Skip to content

Commit

Permalink
fix bad templates
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Nov 28, 2023
1 parent ec965af commit a0ae055
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/print/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,15 @@ export const printer: Printer<Node | undefined> = {
try {
if (node?.extra?.['isGlimmerTemplate'] && node.extra['template']) {
let content = null;
let raw = false;
try {
content = await printTemplateContent(
node.extra['template'] as string,
textToDoc,
embedOptions as Options,
);
} catch {
content = node.extra['template'] as string;
content = (node.extra['template'] as string).trim();
}
const isDefaultTemplate = node.extra['isDefaultTemplate'] as
| boolean
Expand Down

0 comments on commit a0ae055

Please sign in to comment.