Skip to content

toString() results in wrong formatting for first attribute #300

Description

@Guseyn

If I initially have such html:

<button
   data-primary
   ...other attributes
</button>

Then after parsing and calling toString(), it results into:

<button                 data-primary
  ...other attributes
</button>

If I initially have first attribute on the same line as tag name, then it works fine. Sometimes, I prefer to have first attribute on new line but it gets ruined like I showed above.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions