Skip to content

Commit

Permalink
fix for unicode art of empty skew partition
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Oct 23, 2019
1 parent 76b7fdd commit 410d40b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/sage/combinat/skew_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,16 @@ def _unicode_art_(self):
┌┐
┌┬┴┘
└┘
TESTS::
sage: unicode_art(SkewPartition([[],[]]))
"""
from sage.typeset.unicode_art import UnicodeArt
out, inn = self
inn = inn + [0] * (len(out) - len(inn))
if not self._list:
if not any(self._list):
return UnicodeArt(u'∅')
if self.parent().options.convention == "French":
s, t, b, l, r, tr, tl, br, bl, x, h = list(u' ┴┬├┤┘└┐┌┼─')
Expand Down

0 comments on commit 410d40b

Please sign in to comment.