##// END OF EJS Templates
BF: fixed history output to console
Satrajit Ghosh -
Show More
@@ -372,7 +372,7 b" def magic_history(self, parameter_s = ''):"
372 # Print user history with tabs expanded to 4 spaces. The GUI clients
372 # Print user history with tabs expanded to 4 spaces. The GUI clients
373 # use hard tabs for easier usability in auto-indented code, but we want
373 # use hard tabs for easier usability in auto-indented code, but we want
374 # to produce PEP-8 compliant history for safe pasting into an editor.
374 # to produce PEP-8 compliant history for safe pasting into an editor.
375 inline = input_hist[in_num].expandtabs(4)
375 inline = input_hist[in_num].expandtabs(4).rstrip()+'\n'
376
376
377 if pattern is not None and not fnmatch.fnmatch(inline, pattern):
377 if pattern is not None and not fnmatch.fnmatch(inline, pattern):
378 continue
378 continue
General Comments 0
You need to be logged in to leave comments. Login now