Skip to content

CLRF line endings with HTML causes new line in multi line comments #5373

@alexw10

Description

@alexw10

Prettier 1.15.1
Very similar to this issue but with HTML now instead:
#5315

Line Endings have to be CRLF for this to occur.
This is utilizing Angular parser as well if that matters.

Input:

<!--
  test
  test
-->

Output

<!--
  test

  test
-->

Second Output

<!--
  test


  test
-->

This causes prettier lint to fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:htmlIssues affecting HTML (and SVG but not JSX)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions