#16487: Fix ascii art of tableaux
-------------------------------------+-------------------------------------
Reporter: tscrim | Owner: sage-combinat
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.3
Component: combinatorics | Resolution:
Keywords: tableaux, | Merged in:
convention, ascii art | Reviewers: Vincent Delecroix
Authors: Travis Scrimshaw | Work issues:
Report Upstream: N/A | Commit:
Branch: | b8e0066f5772b9a8c672160f7d345188193b0e6a
public/combinat/tableaux_ascii_art-16487| Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by tscrim):
I like the use of `format()`, but I changed it to the centering format
specifier `^`. So now we get:
{{{
sage: T = Tableau([[1,2,3,10,15],[12,15,17123231]])
sage: print T._ascii_art_table()
+----+----+----------+----+----+
| 1 | 2 | 3 | 10 | 15 |
+----+----+----------+----+----+
| 12 | 15 | 17123231 |
+----+----+----------+
sage: print T._ascii_art_compact()
|1 |2 | 3 |10|15|
|12|15|17123231|
}}}
If this is good for you, then positive review.
--
Ticket URL: <http://trac.sagemath.org/ticket/16487#comment:16>
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.