Skip to content

Printing multiline strings results in weird formatting in the talon log #444

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

Closed
wenkokke opened this issue Dec 6, 2021 · 2 comments
Closed

Comments

@wenkokke
Copy link

wenkokke commented Dec 6, 2021

Calling...

print("hello\nworld")

... from an action results in ...

2021-12-06 15:46:30    IO hello
world
2021-12-06 15:46:30    IO

... rather than ...

2021-12-06 15:46:30    IO hello
world
@lunixbochs
Copy link

lunixbochs commented Dec 23, 2021

This is what I'm seeing on my end. Each write to stdout appears as its own log line.

print("hello\nworld") ->
    sys.stdout.write('hello\nworld')
    sys.stdout.write('\n')
print("hello") -> sys.stdout.write("hello\n")
print() -> sys.stdout.write('\n')

May be io.TextIOWrapper's fault.

@lunixbochs
Copy link

talon-rust has a new log viewer which doesn't have this problem, so I'm going to close this

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