Hi Pat,

On Sat, Nov 28, 2009 at 1:36 AM, Pat LeSmithe <qed...@gmail.com> wrote:
> On 11/27/2009 05:47 AM, Minh Nguyen wrote:
>> On Fri, Nov 27, 2009 at 9:10 PM, Yotam Avital <yota...@gmail.com> 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.

Thanks for this. I've CC'd your response to the sage-support mailing
list so that the querent could benefit from your response.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to