-
Notifications
You must be signed in to change notification settings - Fork 46
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
[cubing.js issue] tabulations for indentation break things #337
Comments
Looks like it's related to the tabulation character |
Hmm, yeah, we purposely support spaces for whitepsace right now. If we get a lot of feedback about this I think that wouldn't necessarily be too hard but we'd have to think carefully about implications for https://standards.cubing.net/draft/6/sign-lgn-notation/ I'll leave this issue open for at least adding a more helpful warning. If you remove the tabs from you code, any proper HTML formatter should avoid introducing them at least. |
Closing in favor of #338 |
Thanks, I've indeed configured my editor to avoid tabs entirely since then. But debugging the issue was very strange at the beginning. Help messages would certainly be enough. |
Steps to reproduce the issue
Hello.
This poorly indented code works fine (only spaces before non-first lines of the alg)
This properly indented code doesn't work (there is a tab and some spaces before non-first lines of the alg)
Observed behaviour
Buttons are greyed out depending on the indentation.
🖼 Screenshots
No response
Expected behaviour
Indentation should be ignored.
Environment
Firefox and Chrome on Linux.
Additional info
That's not an important issue, but it looks very strange. Thanks for this stuff anyway, it's really wondering for explaining things to beginners.
The text was updated successfully, but these errors were encountered: