-
-
Notifications
You must be signed in to change notification settings - Fork 674
Closed
Description
On 11/27/2009 05:47 AM, Minh Nguyen wrote:
> On Fri, Nov 27, 2009 at 9:10 PM, Yotam Avital <> wrote:
>> for i in range (1,5):
>> print '%6s %6s %6s'%(i, i^2, i^3)
I think *part* of the problem could be line 294 of sagenb.interfaces.expect:
s = s.strip().rstrip(self._prompt)
Replacing this with
s = s.rstrip(self._prompt)
appears to restore the expected spacing. But quitting and reopening the
worksheet puts
1 1 1
2 4 8
3 9 27
4 16 64
in the output cell. I think the problem here is line 910 (or so) of
sagenb.notebook.cell:
out = '///\n' + out.strip()
Replacing this with
out = '///\n' + out.strip('\n')
seems to solve this problem. It also makes the text representation of
the worksheet more compact.
Note: I haven't tested these changes extensively.
Component: notebook
Author: Mitesh Patel
Reviewer: Tim Dumol
Merged: sagenb-0.6
Issue created by migration from https://trac.sagemath.org/ticket/7648