-
Notifications
You must be signed in to change notification settings - Fork 454
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
incorrectly wrapping <mark> in HTML lists #1008
Comments
Any update on this? It would appear from the debug information I submitted that atom-beautify is submitting its own list of |
Good eye. Atom-Beautify requires default values and for |
Thank you for agreeing to address this, @Glavin001 . Has atom-beautify always "require[d] default values"? Because I could have sworn that once I was successful in getting someone to fix js-beautify, it worked for a while in atom-beautify. In a perfect world, atom-beautify wouldn't need default values---if no values were supplied for an option, it would simply let js-beautify use its own defaults. |
No problem! I definitely want the default experience to be as expected for developers with experience in that language. Let me know if you have any questions regarding submitting a Pull Request with the appropriate changes to
Hmm, I cannot recall 100%. Atom-Beautify may not have been so strict in the past.
However, one advantage of having defaults in Atom-Beautify is it enforces defaults between different beautifiers for the same language. Changing from js-beautify to pretty-diff beautifier may act unexpectedly because the default values are different (no concrete example, just postulating). Those defaults may be opinionated and defined by the maintainers. Atom-Beautify will be open to having unified default values that are external to any individual third-party beautifier. In the case where Atom-Beautify is behind / out-of-date then at least Atom-Beautify is consistent and explicit with its options passed to beautifers and the user can, of course, easily configure Atom-Beautify correctly or submit a Pull-Request such that other users have the improved experience. |
Once again thanks for getting this fix in, @Glavin001 . But I'm a little surprised you scheduled it so far in the future. It fixed a bug that was downright incorrect both in terms of HTML5 and for compatibility with js-beautify. Bug fixes can go into patch releases even under semantic versioning. |
I think there is some confusion 😜 .
What I meant with my comment:
Is that if someone, such as yourself, submits a Pull Request I would be happy to review and merge it. As always, my only requirement is passing Travis CI tests.
I think you are referring to the fact that Hope that clears things up! 😄 |
Ack! So no work has been done on this whatsoever?? But this is a blatant bug---it's not as if atom-beautify did something incorrect---in my opinion it did something completely wrong by simply doing anything at all!! It shouldn't be providing a default value here---it should be letting js-beautify provide a default. If it simply left things alone, then everything would work---and we wouldn't have to be fixing things in two plugins. Yes, you told me your point of view, which disagrees with mine---which is fine, if I don't have to do any work to get this things unbroken. But I thought you meant you were fixing it. If I have to do work... I can fix it by submitting a pull request that takes out the default and delegates to js-beautify so we won't have this problem in the future, even when atom-beautify is updated. (I don't like to do work over and over for no reason.) Is that acceptable? OK---I'm going to have breakfast before I get grumpy. haha Have a great day, @Glavin001 . |
No idea why you're getting grumpy. I agreed that the default value needs to be updated to match JS-Beautify which aligns with what a profession expects the standards to be.
Nor have you submitted a fix for this? You are equally capable to do so and I have even provided links to applicable files to change. Regardless, I've made the change and submitted a very simple Pull Request to #1092 and await to see that the Travis CI tests pass. I was hoping you'd like to contribute to Atom-Beautify instead of complaining and being grumpy, especially since you've already contributed before with https://github.com/Glavin001/atom-beautify/commits?author=garretwilson Hope your day cheers you up. |
I'm not---I was just explaining why it sounded that way because I haven't had breakfast yet. I'm actually having an awesome day. I'm happy to contribute to atom-beautify! You didn't give me time to finish breakfast... 😜 |
P.S. I probably would have made a contribution to this bug already, but I had understood from your comment that you already had created a pull request that addresses this. Sorry I misunderstood you. |
Close #1008. Update HTML.unformatted default value to match js-beautify
Since it's been over a week, let me just verify that I didn't yet again misunderstand you: are you waiting on me for anything before this bug fix is released? |
Um... @Glavin001 ? Anything stopping this from being published? Perhaps even a |
I'm waiting on some Pull Requests that are close to merging and also I've been away on family vacation for few weeks. If the Pull Requests are not ready to merge by tonight when I'm home I will publish 👍 . |
Great, thanks for the update! Don't rush your vacation---I was just checking in for a status. 😃 |
Published to v0.29.11 |
Woo hoo! It works!!!! Thank you soooo much! One less irritation in my life... |
If I have the following HTML code:
Then atom-beautify leaves it just the way I have it. However if I use
<mark>
instead of<span>
:Then atom-beautify incorrectly adds newlines:
This is my complete
.jsbeautifyrc
file:atom-beautify should treat
<mark>
identically to<span>
. They are both inline phrase elements.It turns out this was originally a problem with js-beautify not providing a correct list of inline elements for the
unformatted
optional, which I reported in beautifier/js-beautify#840 and which js-beautify fixed in version 1.6.0, as @bitwiseman noted when I filed this same issue as beautifier/js-beautify#938. (Technically these should not be "unformatted" but "formatted as inline", but that is a larger issue with the js-beautify and not directly related to the current problem.)Now it appears (see the Gist ) that for some reason atom-beautify is deciding to send its own list of
unformatted
elements. I don't know where this list is coming from, but they resemble the old, outdated list that js-beautify used to use.Debug
Here is a link to the
debug.md
Gist: https://gist.github.com/garretwilson/1ceab409405c91630033c1fe3c33cad1Checklist
so I know this is not a duplicate issue
debug.md
Gist to this issueThe text was updated successfully, but these errors were encountered: