Skip to content

Control Flow Migration: Formatting issues #53017

@jessicajaniuk

Description

@jessicajaniuk

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

No

Description

A few issues with the formatting in the control flow migration:

  1. Don't need to format files that weren't modified
  2. single line <h1> and other header tags cause an indent after their line
  3. EOF new line is removed as part of the format
  4. New line at top of template is removed for inline templates
  5. sometimes comments at the head of files are duplicated

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

area: migrationsIssues related to `ng update`/`ng generate` migrationscore: control flowIssues related to the built-in control flow (@if, @for, @switch)state: has PR

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions