Skip to content

Bracket same line #90

@rellafella

Description

@rellafella

This isn't strictly a Twig language one as it's affecting an HTML part of the template.

Prettier config

export default {
    ...prettierConfig,
    bracketSameLine: false,
}
<iframe class=""
    src="https://www.google.com/maps/embed"
    frameborder="0"
    allowfullscreen></iframe>

I would expect, according to the documentation, that this would be output like this

<iframe class=""
    src="https://www.google.com/maps/embed"
    frameborder="0"
    allowfullscreen
></iframe>

better still, slightly related (probably) to #87, have the indentation match the start point of the attribute that is left on the same line as the opening tag.

<iframe class=""
        src="https://www.google.com/maps/embed"
        frameborder="0"
        allowfullscreen
></iframe>

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingPrinterLogic related on how to print the output

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions