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

Missing a new line in $PROMPT causes extra new lines to be printed in buffers containing multiline strings #9

Open
Spitfire1900 opened this issue Jan 7, 2025 · 1 comment

Comments

@Spitfire1900
Copy link
Contributor

@$PROMPT = '''{prompt_bar}{RESET}{WHITE}{prompt_end_xonsh}{RESET}'''

mainstay kyle /tmp/1234abc/xontrib-prompt-bar                                                                                                                                                                                                 7/pyproject.toml   .venv  25-01-06 21:39:39-05
@print('''
 
 extra new lines
 
 ''')
 
 

extra new lines


mainstay kyle /tmp/1234abc/xontrib-prompt-bar                                                                                                                                                                                                 7/pyproject.toml   .venv  25-01-06 21:40:03-05
@$PROMPT = '''{prompt_bar}{RESET}
 {WHITE}{prompt_end_xonsh}{RESET}'''
 
 

mainstay kyle /tmp/1234abc/xontrib-prompt-bar                                                                                                                                                                                                 7/pyproject.toml   .venv  25-01-06 21:40:09-05
@print('''
 no extra newlines
 ''')

up here


mainstay kyle /tmp/1234abc/xontrib-prompt-bar                                                                                                                                                                                                 7/pyproject.toml   .venv  25-01-06 21:40:21-05
@print('''no extra newlines''')
no extra newlines

mainstay kyle /tmp/1234abc/xontrib-prompt-bar                                                                                                                                                                                                 7/pyproject.toml   .venv  25-01-06 21:40:33-05
@
@Spitfire1900 Spitfire1900 changed the title Missing a new line in $PROMPT casues extra new lines to be printed in multiline strings Missing a new line in $PROMPT causes extra new lines to be printed in buffers containing multiline strings Jan 7, 2025
@Spitfire1900
Copy link
Contributor Author

Should note, this was seen on Konsole on Ubuntu noble and doesn't reproduce on Windows.

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

No branches or pull requests

1 participant