#1918: Matrices that are printed are not aligned
------------------------------+---------------------------------------------
   Reporter:  jason           |       Owner:  was         
       Type:  enhancement     |      Status:  needs_review
   Priority:  major           |   Milestone:  sage-4.3    
  Component:  linear algebra  |    Keywords:              
Work_issues:                  |      Author:              
   Upstream:  N/A             |    Reviewer:              
     Merged:                  |  
------------------------------+---------------------------------------------

Comment(by wcauchois):

 Replying to [comment:7 hivert]:

 I agree that there are many more cases where this type of list formatting
 could be useful, and indeed the code is general enough to work with any
 type of object whose repr spans multiple lines. The issue is simply
 choosing which lists to format specially (in print_obj()).

 In one of my earlier iterations of the displayhook, I applied the special
 list formatting to every "tall" list. But when I ran testall I found that
 some objects just didn't work well with the formatting. So I think that
 applying the hook always is a mistake, and besides would introduce many
 more doctest headaches. Having objects "opt-in" by including a special
 field or method that tells the displayhook to use the special list
 formatting sounds like a good idea though.

 This kind of work should definitely be done, but in another ticket. We
 will have to come to an agreement about these design issues. For now,
 let's get this patch into Sage.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/1918#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--

You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to