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

PythonConsoleLexer bug: reordered traceback text #2329

Closed
dbader opened this issue Jan 31, 2023 · 2 comments
Closed

PythonConsoleLexer bug: reordered traceback text #2329

dbader opened this issue Jan 31, 2023 · 2 comments

Comments

@dbader
Copy link

dbader commented Jan 31, 2023

Example:

Lexer: PythonConsoleLexer (Python console session)

Input:

Traceback (most recent call last):
    ...
KeyboardInterrupt

Result:

<div class="demo-highlight"><pre><span></span><span class="nc">KeyboardInterrupt</span>
<span class="gt">Traceback (most recent call last):</span>
<span class="w">    </span><span class="o">...</span>
</pre></div>

Screen Shot 2023-01-31 at 10 09 23 AM

👆 Notice how the KeyboardInterrupt gets moved up above the Traceback line in the output

Versions

@dbader
Copy link
Author

dbader commented Jan 31, 2023

Might be related to #2226?

@birkenfeld
Copy link
Member

Thanks for the report!

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

2 participants