Python Forum
indentations in python code inserts - 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: indentations in python code inserts (/thread-23149.html)



indentations in python code inserts - Skaperen - Dec-13-2019

it seems that python code insert are unindenting all the code lines in a code insert. at least it's the same amount for all lines in the same block, but it varies per block:
this
    should
        be
            seen
                diagonal
                    with
                        each
                            line
                                indented
                                    four
                                        more
                                            than
                                                the
                                                    previous
and the 3rd line with "be" after 8 spaces just went all blank. sometime i might want to have separate blocks line up relative to each other. or maybe a block of python code needs to have indentation on all lines so it can be inserted in other code.

and i notice that a run of spaces inside quotes in text just disappears.


RE: indentations in python code inserts - ibreeden - Dec-13-2019

What do you mean by "code insert"? Are you pasting text in your editor? In that case: use another editor.


RE: indentations in python code inserts - metulburr - Dec-13-2019

There are known board issues here
https://python-forum.io/misc.php?action=help&hid=39

It also appears the first line is truncated to the left regardless
    this
   Should
      Be
         Indented



RE: indentations in python code inserts - Skaperen - Dec-13-2019

the first line had no indentation. you can see it by clicking on the "Quote" button for post #1 and look at the quoted text. this issue is not in that list of issues.

we need a decent board program that is written in Python3 so so we can easily hack applied goofs in it.


RE: indentations in python code inserts - Skaperen - Jan-25-2020

after clicking on the "Quote" button for post #1, don't click on the "Post Reply" button. instead, just scroll up to the top and click on the pretty Python Art.