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

Put unquoted and name only attributes on the same line when possible #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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