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

Newline characters not being printed correctly #108

Open
solarisfire opened this issue May 18, 2023 · 5 comments
Open

Newline characters not being printed correctly #108

solarisfire opened this issue May 18, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@solarisfire
Copy link

When chatgpt responds by giving advice on how to add a new line to some Python code, it doesn't return the correct character...

e.g.

image

Compared to it's response on the web chat where it does this correctly:

image

@solarisfire
Copy link
Author

Oh, I guess I should have looked at the latest commit before posting this... 🤦🏻

@solarisfire
Copy link
Author

Nope, updated to latest code from git and still getting the same issue:

image

@mountaineerbr
Copy link

mountaineerbr commented May 18, 2023

You may try to install glow.

It seems you haven't got glow, so I reckon the problem is with echo -e in line 450.

OBS: I am not sure how to fix it because IDK how text in $formatted_text is stored (I would rather not install this script for testing myself as it messes up with sys configs).

@solarisfire
Copy link
Author

Okay, that fixes it!

image

Maybe glow needs to be a dependency, or there should be some warning if glow isn't installed suggesting that it should be?

@0xacx
Copy link
Owner

0xacx commented May 18, 2023

Yes glow is an optional dependency and listed as optional in the prerequisites. Meaning this should work fine also without installing glow. I can't look into this right now so I will leave this issue open to examine.

@0xacx 0xacx added the bug Something isn't working label May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants