Bug in indentation
See original GitHub issueI recently added the feature to display the invisible characters (spaces) in my application, but when I create a new line, the indentation is not respected. It’s done x5 or more.
In fact, there is an issue only when I make a new line in a script
or style
tag. The bug occurs even if showInvisibles
is disabled.
But not in HTML structure. I let the picture tell you more.
- I use the latest version of CodeMirror, 5.39.0
Here’s a screenshot of what it looks like:
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Correct indentation allows for better understanding and bug ...
It is recommended to correctly indent the lines as it allows for the code to be readable and understandable by the user as...
Read more >Indentation Bugs - Google Groups
Hello,. I don't know if this is a known issue, but the Eclipse plugin has some annoying bugs regarding indentation for me. In...
Read more >Suspected bug in Word 365 "Mirror indents" behavior
If a Hanging indent is included with Inside & Outside indentation, the paragraphs are displayed correctly, with the inside and outside indent ...
Read more >Bug: Indentation problem | Codecademy
I removed all the indentation and line breaks of the class Animal untill it was just a line. Then pressed enter right after...
Read more >Python Indentation bug? - Stack Overflow
1 Answer 1 ... You've mixed tabs and spaces. Most of your code is indented with spaces, but a few lines have tabs,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The issue is solved. I was just getting the
tabSize
andindentUnit
as a string from cookies. It looks like they must be numbers, so I useNumber()
.There was a cache issue. Sorry and thanks 😉