strange change of the indention to 3 spaces - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html) +--- Forum: Board (https://python-forum.io/forum-26.html) +--- Thread: strange change of the indention to 3 spaces (/thread-3385.html) |
strange change of the indention to 3 spaces - buran - May-19-2017 I noticed strange behaviour when post code. Sometimes it change the indention to 3 spaces, instead of 4. FYI, I use Firefox, in case it is browser specific. Happens on Windows 7, Windows 10 and Linux Mint, so not OS specific. I think that happens if you open the post for edit/moderate, but cannot be 100% sure. Some times it change just some lines, some times - all of the indentation. When it is for one line and you reopen it to fix this, when you save the post again it changes the indentation of yet another row. You need to redo the indentation of all lines manually in order to avoid this. Anyone else noticed such issue? RE: strange change of the indention to 3 spaces - Kebap - May-19-2017 No I haven't noticed, yet. Would be good if you can describe details how to reproduce. RE: strange change of the indention to 3 spaces - buran - May-19-2017 (May-19-2017, 08:32 AM)Kebap Wrote: Would be good if you can describe details how to reproduce.Yeah, sure I know that, however I haven't found a way to reproduce it at will :-( RE: strange change of the indention to 3 spaces - buran - May-19-2017 test post to try and replicate the problem def foo(): """This is just some dummy code""" a=0 for n in range(10): a+=n return aIn this case it happened by posting code, then click moderate and update post RE: strange change of the indention to 3 spaces - buran - May-19-2017 def foo(): """This is just some dummy code""" a=0 for n in range(10): a+=n return a RE: strange change of the indention to 3 spaces - buran - May-19-2017 def foo(): """This is just some dummy code""" a=0 for n in range(10): a+=n return a RE: strange change of the indention to 3 spaces - buran - May-19-2017 OK, in the three posts above it happened when after post I go to full edit or Moderate and update it (no actual change was made). In all three cases it happened to all rows with indentation. The code is with 4 space (not tab) originally RE: strange change of the indention to 3 spaces - buran - May-19-2017 Note that only one space is deleted. the loop is still indented 4 spaces RE: strange change of the indention to 3 spaces - buran - May-19-2017 def foo(): """This is just some dummy code""" a=0 for n in range(10): a= a + n return a RE: strange change of the indention to 3 spaces - Kebap - May-19-2017 (May-19-2017, 10:52 AM)buran Wrote: OK, in the three posts above it happened when after post I go to full edit or Moderate and update it (no actual change was made). Confirmed. However, it seems to only happen with the [ python ] codebox and not with the [ code ] codebox which I tend to use (not clicking the button rather typing the tag myself) Furthermore, it has to do with the python codebox not rendering in full edit/moderate mode. However the code codebox (yes) does show rendered there. At that time, the python codebox code has only 3 spaces left where it before had 4, while the code codebox code (indeed) stays intact. def foo(): """This is just some dummy code""" a=0 for n in range(10): a+=n return a def foo(): """This is just some dummy code""" a=0 for n in range(10): a+=n return a |