Skip to content

Conversation

enescakir
Copy link

Currently, unquoted and name-only attributes are placed on a new line, even when they could fit on the same line. This PR modifies this behavior to keep them on the same line when possible.

Expected output:

<input type="hidden" name="my-name" value="my-value" hidden/>

Current output:

<input type="hidden" name="my-name" value="my-value"
  hidden/>

Currently, unquoted and name-only attributes are placed on a new line,
even when they could fit on the same line. This PR modifies this
behavior to keep them on the same line when possible.

Expected output:

    <input type="hidden" name="my-name" value="my-value" hidden/>

Current output:

    <input type="hidden" name="my-name" value="my-value"
      hidden/>
@enescakir
Copy link
Author

Hi @elia, do you have any reviews for this PR?

1 similar comment
@enescakir
Copy link
Author

Hi @elia, do you have any reviews for this PR?

enescakir added a commit to ubicloud/ubicloud that referenced this pull request Nov 7, 2024
We were using a forked version of nebula/erb-formatter due to these two
commits:
- ubicloud/erb-formatter@05b30f6
- ubicloud/erb-formatter@a9ff000

These issues have been fixed upstream, so I initially planned to switch
to the official package. However, I encountered another problem and
created two PRs to address them. Unfortunately, I didn't receive any
response from the maintainer. Thus, I've decided to continue using our
updated forked version.
- nebulab/erb-formatter#58
- nebulab/erb-formatter#59
enescakir added a commit to ubicloud/ubicloud that referenced this pull request Nov 7, 2024
We were using a forked version of nebula/erb-formatter due to these two
commits:
- ubicloud/erb-formatter@05b30f6
- ubicloud/erb-formatter@a9ff000

These issues have been fixed upstream, so I initially planned to switch
to the official package. However, I encountered another problem and
created two PRs to address them. Unfortunately, I didn't receive any
response from the maintainer. Thus, I've decided to continue using our
updated forked version.
- nebulab/erb-formatter#58
- nebulab/erb-formatter#59
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

Successfully merging this pull request may close these issues.

1 participant