Skip to content

Fix empty line printed to the Python console on each script evaluation#623

Merged
marvinoe21 merged 2 commits into
masterfrom
622-bug---each-script-evaluation-causes-an-empty-line-in-the-python-console
Oct 14, 2025
Merged

Fix empty line printed to the Python console on each script evaluation#623
marvinoe21 merged 2 commits into
masterfrom
622-bug---each-script-evaluation-causes-an-empty-line-in-the-python-console

Conversation

@marvinoe21
Copy link
Copy Markdown
Collaborator

@marvinoe21 marvinoe21 commented Jul 17, 2025

I fixed the bug by adjusting the output check in the Python console.

@marvinoe21 marvinoe21 changed the title fix empty line bug Fix empty line printed to the Python console on each script evaluation Jul 17, 2025
@marvinoe21
Copy link
Copy Markdown
Collaborator Author

@rainman110 TBD: Should a new prompt (GTlab>) appear after each script evaluation or should the Python console stay unchanged when the script produces no output?

@rainman110
Copy link
Copy Markdown
Contributor

@marvinoe21 I don't understand. IMHO, it should appear only something, if something is actively printed.

We should avoid the situation, where many empty lines are generated and it is not obvious, where they are coming from.

@marvinoe21
Copy link
Copy Markdown
Collaborator Author

Yes, that is the behavior I would expect too. With this PR, the empty line is no longer printed. Now, output only appears when something is actively printed.

Copy link
Copy Markdown
Contributor

@real-ct-ac real-ct-ac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks very good. thanks!

@marvinoe21 marvinoe21 merged commit e671e20 into master Oct 14, 2025
1 check failed
@marvinoe21 marvinoe21 added this to the 1.8.1 milestone Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] - Each script evaluation causes an empty line in the Python console

3 participants