From https://github.com/CodeEditApp/CodeEditTextView/pull/135, it sounds like there could be a problem with how NewlineProcessingFilter handles whitespace. I'm not sure how it could be that I haven't noticed this before. But, this stuff is all tricky, and whitespace/indentation in particular can be really tough.