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) |
RE: strange change of the indention to 3 spaces - metulburr - May-19-2017 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 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 - metulburr - May-19-2017 i cant seem to replicate this at all. It remains 4 space indent after editing on numerous occasions. Quote: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) both python and code tags are linked to the same syntax highlighter code, so im not sure why one would do it and the other would not. Though i cant really test it as i cant replicate it. RE: strange change of the indention to 3 spaces - Larz60+ - May-19-2017 Testing: def foo(): """This is just some dummy code""" a=0 for n in range(10): a+=n return aIt did change to 3 spaces for me. RE: strange change of the indention to 3 spaces - micseydel - May-19-2017 (May-19-2017, 04:18 PM)metulburr Wrote: i cant seem to replicate this at all. (May-19-2017, 06:06 PM)Larz60+ Wrote: It did change to 3 spaces for me.Browser? OS? RE: strange change of the indention to 3 spaces - buran - May-19-2017 Testing something else def foo(): """This is just some dummy code""" a=0 for n in range(10): a+=n return aSo, it doesn't happen with Edit, Only with Full Edit and Moderate. Also immediately after you click Full Edit and Moderate, the indentation is off - i.e. it's not after the Update. The preview of the post for edit is already broken RE: strange change of the indention to 3 spaces - nilamo - May-19-2017 def foo(): """spam""" a=0 for n in range(10): a+=n return a*edit* Ok, so you have to actually save for the change to happen. If you just go into Full Edit, the indentation is off, but if you cancel the edit without saving, it's still 4 spaces. Seems like the Full Editor might be whack. RE: strange change of the indention to 3 spaces - Larz60+ - May-19-2017 Quote:Browser? OS?Mozilla firefox 53.0.2 windows 7 pro used quick reply with typed code tags as soon as I tried to edit, text was converted sorry for brain fart RE: strange change of the indention to 3 spaces - buran - May-19-2017 (May-19-2017, 07:32 PM)nilamo Wrote: you have to actually save for the change to happen. If you just go into Full Edit, the indentation is off, but if you cancel the edit without saving, it's still 4 spaces.yes, I should have mentioned that from the beginning RE: strange change of the indention to 3 spaces - snippsat - May-19-2017 Looking a little into it. I guess no one can get 3-space indent if do as image under. Also first click on Preview Post button,then paste in code into editor(now Post a New Reply window).In editor clicking on Preview Post will change nothing.[Image: Bo4iGN.jpg] When in Quick Reply window an now paste code in that window.Then hit Preview Post button it will be 3-space indent.
RE: strange change of the indention to 3 spaces - snippsat - May-19-2017 The problem is from Quick Reply when clicking on Preview Post It will always lose 1-indent Eg. 1-indent(be 0-indent after click Preview Post )4-indent(will be 3-indent after click Preview Post )
|