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

Unquoted single char values are not handled properly #40

Closed
x4d3 opened this issue Jan 6, 2024 · 0 comments · Fixed by #41
Closed

Unquoted single char values are not handled properly #40

x4d3 opened this issue Jan 6, 2024 · 0 comments · Fixed by #41

Comments

@x4d3
Copy link
Contributor

x4d3 commented Jan 6, 2024

Currently this files

<div
  class="col-12 autocomplete"
  data-controller="autocomplete"
  data-autocomplete-min-length-value=2
>
</div>

is being transformed to

<div
  class="col-12 autocomplete"
  data-controller="autocomplete"
  data-autocomplete-min-length-value=22
>
</div>

Which looks like it's caused by this line

full_attr = "#{name}=#{value[0]}#{value_parts.join(" ")}#{value[-1]}"

x4d3 added a commit to x4d3/erb-formatter that referenced this issue Jan 6, 2024
x4d3 added a commit to x4d3/erb-formatter that referenced this issue Jan 6, 2024
x4d3 added a commit to x4d3/erb-formatter that referenced this issue Jan 6, 2024
x4d3 added a commit to x4d3/erb-formatter that referenced this issue Jan 6, 2024
@x4d3 x4d3 changed the title Unquoted values are not handled properly Unquoted single char values are not handled properly Jan 6, 2024
x4d3 added a commit to x4d3/erb-formatter that referenced this issue Jan 10, 2024
@elia elia closed this as completed in #41 Jan 10, 2024
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 a pull request may close this issue.

1 participant