Permalink
Browse files

BF: fixed history output to console

  • Loading branch information...
satra committed Dec 17, 2010
1 parent 9682ad8 commit 3498382180ad409592f46a9dd0d190ca917bfbff
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/core/history.py
View
@@ -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):
continue

0 comments on commit 3498382

Please sign in to comment.