Python Forum

Full Version: indentations in python code inserts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
What do you mean by "code insert"? Are you pasting text in your editor? In that case: use another editor.
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
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.
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.