Permalink
Browse files

fix too-restrictive use of split(os.linesep) in %page

replaced with splitlines()

closes gh-147
  • Loading branch information...
1 parent e68cf3a commit cf7081f9e04ba8251a76bbbe913ccdf73f3d00ff @minrk minrk committed Apr 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/core/page.py
View
@@ -110,7 +110,7 @@ def page(strng, start=0, screen_lines=0, pager_cmd=None):
print strng
return
# chop off the topmost part of the string we don't want to see
- str_lines = strng.split(os.linesep)[start:]
+ str_lines = strng.splitlines()[start:]
str_toprint = os.linesep.join(str_lines)
num_newlines = len(str_lines)
len_str = len(str_toprint)

0 comments on commit cf7081f

Please sign in to comment.