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

[HTML Formatting] Typescript input values un-camelcased when using wrap_attributes: force. #123

Open
abejdaniels opened this issue Apr 24, 2019 · 2 comments
Assignees

Comments

@abejdaniels
Copy link

Take the following snippet for example:
<form id="searchFormContainer" [formGroup]="searchForm" class="flex-column"></form>
When running this through the playground, you can see that it ends up changing the case in [formGroup], resulting in:
<form id="searchFormContainer" [formgroup]="searchForm" class="flex-column"></form>

This completely breaks the compiler.
YAML:
HTML: beautifiers: - Pretty Diff - JS-Beautify wrap_attributes: force

@Glavin001
Copy link
Member

Reproduced: https://playground.unibeautify.com/#N4IgNghgdg5grhGBTAchAtkkAuEAJAFQFkAZEAGhAHsAHAFwEsqoBnHUAYQGJ2QAjJBDiMAZgyQAnNtgDaIAAoSkdOgE8ABABEGIkSAC6AX0ocAyqd4Cho8VJxzFyxpIoKlKjdt2uAUqYC0AEKCwjqqBsYgHFRgACYAYnAsTFCWITaS0g7ualo6ekaUAKJ+adY6tlluTp75vgHB5SLhhSAA4hIQNAAWAIpk2KBWoWKZ9tUqthGUhKRlI5Xjjh553pR+QelhBpQMULFIUHQA+gDGVOiYR9J0EnBIlIexxwDuDHTdZxfoEDgiEGAWA8QHsDkdjiw1GAsLgWDQIKcsLt9ocTskAF4wgBMlD4SggAGszt0IHskM9MB8qLFpP9AcCfgAPY40JRAiQANyQxygSBeYDJ0gAjAAGSgARzgVDoSGkICgzCRIDhCO5EBEMokx2gzGOIjgUFOjGYfwBQMo6DgYEYAt5x01UAgEnCuABLwgqjYlABDBgUG1LGSfqudFpZuBL06NGOtu50NgHxwAA4xSARFQJIjjqDURBjalsHTzfxOlnIapoTgQOcwJAaEDXDnwXteVrunR0GBTfTKAb0xIfipyeNft6+HjXE7BJO4LEmK4+Au50uqAuJAvhHQTZRTtAORAvdX3krzgdXLE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

Before

<form id="searchFormContainer" [formGroup]="searchForm" class="flex-column"></form>

After

<form id="searchFormContainer"
    [formgroup]="searchForm"
    class="flex-column"></form>

I'm able to reproduce it with just Pretty Diff beautifier: https://playground.unibeautify.com/#N4IgNghgdg5grhGBTAchAtkkAuEAJAFQFkAZEAGhAHsAHAFwEsqoBnHUAYQGJ2QAjJBDiMAZgyQAnNtgDaIAAoSkdOgE8ABABEGIkSAC6AX0ocAyqd4Cho8VJxzFyxpIoKlKjdt2uAUqYC0AEKCwjqqBsYgHFRgACYAYnAsTFCWITaS0g7ualo6ekaUAKJ+adY6tlluTp75vgHB5SLhhSAA4hIQNAAWAIpk2KBWoWKZ9tUqthGUhKRlI5Xjjh553vqUDFCxSFB0APoAxlTomLvSdBJwSJQ7sXsA7gx03YfH6BA4IhBgLNcgm9tdnsWGowFhcCwaBADlgNlsdvtkgAvcEAJkofCUEAA1oduhBNkg7phnlRYtIvj8-u8AB57GhKX4SABuSD2UCQ9zAhOkAEYAAyUACOcCodCQ0hAUGYsJAkOhbIgInFEj20GYexEcCgB0YzE+31+lHQcDAjG5HL2KqgEAk4Vw33uEFUbEo3wYMCgapYyU9pzoFMNf3unRoewtbLBsGeOAAHIKQCIqBIYXsAQiIHrUthKUb+J1UyDVGCcCAjmBIDRfq500DNhzVd06OgwAaqZRtUmJO8VETxh83XxMa5bYIR3BYkxXHxp5PZ1RpxJp8I6PrKAdoMyIK6y09ZUdtq5YpmByBj3R3SCj0hW5RYiJUjd0K4kOgBLEazWRJ1MDX0DAaygGhhEAndsT4D9KGxJBVGQR9wAgARbxAd4aFcd4JGxdDM26dDlBcShpRYA4JAYehXCoPgACskF1CjhGAuhXAZKgYEZHchVcS4+HCSgdxYDA0L4m9aKYvj3grVx5XgkEJGYAC+LgGdFKEuVmQUkBxXQGhIHFVxxRpC8sX0hhfw7VwtyXShmQYbYF0oe5h0oAyxJAaE5KgVRnzdWJYnY6cPSPVzNn4iTkNkhhoP01yGVlbpeVcbpUUSgBmRKABZEoAVkSgA2Aw4UBRESLIgNS2lbtvmYxlJFZdlOQjc5Lj+W4HieF4OS5Qk2zzTqIz2AQuzZC8YCqbpBEg-gyV4kAAHomxbAqQBDLo1RUUi+GECVSy7GFXBWsNMwuBhNvFFg03hIFkXBdLIlmEgAGoigAJUCeYMjsWQJlyLwCju6BYjBPhbWkIZ0gqMYvuWH66koPwgnB5pphAPwAHkUHeiHPuyJwpkoaHam8OGGkRlpIj8AANTHRmx768e+wm9GJhGmjJuGIC3anFihnJGeRnwOYgUwSvIwZ+ER7mccmAiGdWJmUZJ1nXCKUwSE2JjWhICVQfFppJbpmWCbl5G1ZFWyuchuR4caEY2ZAIhbWxWIqHubMwb1y2DaXVoiCSC8DnGi3aet0nkfkPB5CDqpw-kfwzH8eIGBpFxWmepgmLF4YPuj3njdaUwzAsTOJc96H6aN37kdMAA1Noo6WXPK-z7cdazrGc5qPPIlMKEYWBz73YWUvG7qfPHgA4uPdpivR8iAgnmgBg4HQdRTFBJBV-G5RW5L6eR7WOfx-rnnO6bufVBoJBhdI0XB+zhvccN-e-soauGBYBAwF28E7-bh+VjPq-K4x8pbOG9pECmcxJ5Dz3qfWGCsWa22RhTAgr4dKZh-rrGBHcAGz0iMmD0mxvioMMqWAAPF2FetkAC8AAdOUggUzdHiMmdA0RdgEgbPQ9QMhKEdCoHAGg+g6EMNtAHFh3ZuEHEgD6ERIgwQ0n8OWZeUB6EAD4yGzUoWo2hqRDBAA

I recommend creating an issue over at https://github.com/prettydiff/prettydiff and letting @prettydiff know.

@Glavin001 Glavin001 transferred this issue from Unibeautify/unibeautify May 22, 2019
prettydiff added a commit to Unibeautify/sparser that referenced this issue May 22, 2019
@prettydiff
Copy link
Collaborator

Fixed on the Pretty Diff side.

@prettydiff prettydiff reopened this May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants