Skip to content

Commit 3f3e5fa

Browse files
committed
fix(plugin): maintain format of template literal
1 parent 424b0a3 commit 3f3e5fa

File tree

1 file changed

+4
-2
lines changed
  • libs/plugin/src/generators/init

1 file changed

+4
-2
lines changed

libs/plugin/src/generators/init/init.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,12 @@ export async function initGenerator(tree: Tree, options: InitGeneratorSchema) {
276276
});
277277

278278
const template = templateMetadata.getInitializer() as NoSubstitutionTemplateLiteral;
279-
template.setLiteralValue(`${options.sceneGraph === 'append' ? template.getLiteralValue() : ''}
279+
template.setLiteralValue(`
280+
${options.sceneGraph === 'append' ? template.getLiteralValue() : ''}
280281
<ngt-canvas>
281282
<app-scene-graph *canvasContent />
282-
</ngt-canvas>`);
283+
</ngt-canvas>
284+
`);
283285
}
284286

285287
// update import statements

0 commit comments

Comments
 (0)