Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


History fix #215

1 commit merged into from

1 participant


while stripping trailing '\n' we didn't realize that this was helpful in the magic 'history'. this is now fixed.

@damianavila damianavila referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 17, 2010
  1. @satra
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  IPython/core/
2  IPython/core/
@@ -372,7 +372,7 @@ def magic_history(self, parameter_s = ''):
# Print user history with tabs expanded to 4 spaces. The GUI clients
# use hard tabs for easier usability in auto-indented code, but we want
# to produce PEP-8 compliant history for safe pasting into an editor.
- inline = input_hist[in_num].expandtabs(4)
+ inline = input_hist[in_num].expandtabs(4).rstrip()+'\n'
if pattern is not None and not fnmatch.fnmatch(inline, pattern):
Something went wrong with that request. Please try again.