Skip to content

Markup attributes forced to new line if followed by comment #632

@spider-mane

Description

@spider-mane

In twig, whenever a comment starts the first non-empty line following an opening tag, the attributes are forced onto a new line and indented.

<div class="container text-white-90">

  {# brand/ logo #}

becomes

<div 
  class="container text-white-90">

  {# brand/ logo #}

I'm using the Twig Language VS Code extension, but this also happens on the website demo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions