2017-05-19, 11:42 PM
The users from our forum has came across a fluke regarding the quick reply editor removing 1 indent from any lines that are indented. This might sound trivial, but in a language such as Python that uses indentation to signify blocks of code it is important.
This occurs only in the quick reply editor not advanced editor. Found out it actually occurs in both.
to replicate....
type code indented (or any lines actually) and hit preview to take the code to your advanced editor. There you will see the code has removed 1 space indent from any line indented.
before: (what i put into the editor)
[attachment=38865]
What comes out from that input into the post...
[attachment=38866]
As you can see the second line containing the content of "1 indent" is meant to be indented 1 space, and it is when i put it in (as specified by the orange highlighted whitespace). However on the output, there is no space there. And every line after is 1 less space than what was inputted.
EDIT:
After playing around i found it to be "preview" in advanced editor or quick reply causes the issue. Preview will actually change the whitespace in the editor field of 1 less space afterwords.
This occurs only in the quick reply editor not advanced editor. Found out it actually occurs in both.
to replicate....
type code indented (or any lines actually) and hit preview to take the code to your advanced editor. There you will see the code has removed 1 space indent from any line indented.
before: (what i put into the editor)
[attachment=38865]
What comes out from that input into the post...
[attachment=38866]
As you can see the second line containing the content of "1 indent" is meant to be indented 1 space, and it is when i put it in (as specified by the orange highlighted whitespace). However on the output, there is no space there. And every line after is 1 less space than what was inputted.
EDIT:
After playing around i found it to be "preview" in advanced editor or quick reply causes the issue. Preview will actually change the whitespace in the editor field of 1 less space afterwords.