#18328: Move ascii art to _ascii_art_
------------------------------+----------------------------
   Reporter:  vbraun          |            Owner:
       Type:  defect          |           Status:  new
   Priority:  major           |        Milestone:  sage-6.7
  Component:  user interface  |         Keywords:
  Merged in:                  |          Authors:
  Reviewers:                  |  Report Upstream:  N/A
Work issues:                  |           Branch:
     Commit:                  |     Dependencies:
   Stopgaps:                  |
------------------------------+----------------------------
 There are probably multiple places where `_repr_()` returns ascii art and
 not a string that can be composed with other strings. That then leads to
 issues like
 {{{
 sage: pi.n(100), CartanMatrix("E8~").dynkin_diagram()
 (3.1415926535897932384626433833,         O 2
          |
          |
  O---O---O---O---O---O---O---O
  1   3   4   5   6   7   8   0
  E8~)
 }}}
 The solution should be to move ascii art to the magic `_ascii_art_`
 method.

 Unfortunately, the IPython commandline defaults to plain text output. So
 you either have to switch
 {{{
 sage: %display ascii_art
 }}}
 or override `_rich_repr_` to make ascii art the default for your object.
 Perhaps the default display preference on the commandline should be
 changed to ascii art.

--
Ticket URL: <http://trac.sagemath.org/ticket/18328>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to