Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self closing tags are not being formatted correctly #49

Open
Jonaphant opened this issue Nov 16, 2023 · 0 comments
Open

Self closing tags are not being formatted correctly #49

Jonaphant opened this issue Nov 16, 2023 · 0 comments

Comments

@Jonaphant
Copy link

Version: x.x.x

prettier-plugin-marko@3.0.1

Details

When formatting with prettier, self closing tags are not being formatted the same as components that have open/closing tags.

Expected Behavior

    <@column
        field='campaignName'
        columnText='Campaign name'
        columnDescription='Campaign name desc'
        width='1fr'
        align='center'
        sortable=true
    />

    <@column
        field='clicks'
        columnText='Clicks'
        columnDescription='Clicks desc'
        width='1fr'
        align='right'
        sortable=true
    />

Actual Behavior


    <@column field='campaignName' columnText='Campaign name' columnDescription='Campaign name desc'
    width='1fr' align='center' sortable=true /> <@column field='clicks' columnText='Clicks'
    columnDescription='Clicks desc' width='1fr' align='right' sortable=true />

Possible Fix

Additional Info

Your Environment

  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop or mobile):
  • Link to your project:

Steps to Reproduce

  1. first...

Stack Trace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant