Angular schematics generates blank lines through template #27896
Labels
area: @angular-devkit/schematics
freq1: low
Only reported by a handful of users who observe it rarely
severity2: inconvenient
type: bug/fix
workaround2: non-obvious
Command
generate
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I have ng schematics template
__name@dasherize__.component.html
with content :I build it with :
Generated code creates empty lines on place where is put command "<%" in template, see:
Is there anyway these white spaces can be avoided. If we have to do it manually, it might kill the purpose of this code generator tool
Minimal Reproduction
Write a schematic template code with inline code <% inline code %>. Then build and generate code using commands
We can see generated code is having while spaces wherever inline code is present.
Exception or Error
No response
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: