Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect indentation error when spanning several lines #201

Open
Gouvernathor opened this issue Sep 4, 2022 · 1 comment
Open

Incorrect indentation error when spanning several lines #201

Gouvernathor opened this issue Sep 4, 2022 · 1 comment

Comments

@Gouvernathor
Copy link
Member

Extension version

2.0.13

Issue description

When indenting things inside open python parentheses spanning several lines, the indenting of the following line is highlighted as being not good, when actually it's not real indenting.

Scope inspector screenshots

image
The error is this one : Inconsistent spacing detected (39 given, expected a multiple of 4). Indentation must consist only of spaces in Ren'Py scripts. Each indentation level must consist of the same number of spaces. (4 spaces is strongly recommended.)

Code

$ timedevents = [ev for ev in ("hermi1", "hermi2", "hermi3",
                               "ginny2", "owl_to_luna") if ev in eventshedule]
@Gouvernathor
Copy link
Member Author

I found an even weirder case :
image

define narrator = Character(what_xalign=.5, what_text_align=.5, what_layout="subtitle",
                            window_background=Transform("gui/textbox/textbox_plain.png", xalign=0.5, yalign=1.0, alpha=.8))

label start:
    $ randomseed = random.random()
    prettycentered "On a lovely morning in the Wizarding world..."

    show expression Solid("#210") as doormat with Dissolve(3):
        contains:
            "#210"
        contains:
            "#961"
            size (1500, 800)
            align (.5, .5)
            yoffset -50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants