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

qtconsole: Create a prompt newline by inserting a new block (w/o formatting) #2370

Merged
merged 1 commit into from
Sep 6, 2012

Conversation

bfroehle
Copy link
Contributor

Previously we inserted a '\n' to create a newline before a prompt. This, however proved fragile as in code like

from IPython.display import HTML
HTML("<ul><li>Item</li></ul>")

the newline inserted a new list item instead of a new paragraph.

As far as I can tell the correct notion here is a new "block" which seems to behave like an HTML paragraph.

Closes #2314

@travisbot
Copy link

This pull request passes (merged 52bdc1d into 0af1e9d).

@epatters
Copy link
Contributor

epatters commented Sep 6, 2012

Looks good to me. Thanks for the fix.

epatters added a commit that referenced this pull request Sep 6, 2012
qtconsole: Create a prompt newline by inserting a new block (w/o formatting)
@epatters epatters merged commit d3792af into ipython:master Sep 6, 2012
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
qtconsole: Create a prompt newline by inserting a new block (w/o formatting)
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.

HTML lists seem to interfere with the QtConsole display
3 participants