Skip to content

Commit 8db7b0f

Browse files
author
Matthias Koeppe
committed
./sage -fixdoctests --only-tags src/sage/typeset
1 parent 7b7f4e4 commit 8db7b0f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/sage/typeset/ascii_art.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
n *log(x)
2727
---------
2828
pi
29-
sage: ascii_art(list(Partitions(6))) # optional - sage.combinat sage.libs.flint
29+
sage: ascii_art(list(Partitions(6))) # needs sage.combinat sage.libs.flint
3030
[ * ]
3131
[ ** * ]
3232
[ *** ** * * ]
@@ -232,21 +232,21 @@ def ascii_art(*obj, **kwds):
232232
We can specify a separator object::
233233
234234
sage: ident = lambda n: identity_matrix(ZZ, n)
235-
sage: ascii_art(ident(1), ident(2), ident(3), sep=' : ') # optional - sage.modules
235+
sage: ascii_art(ident(1), ident(2), ident(3), sep=' : ') # needs sage.modules
236236
[1 0 0]
237237
[1 0] [0 1 0]
238238
[1] : [0 1] : [0 0 1]
239239
240240
We can specify the baseline::
241241
242-
sage: ascii_art(ident(2), baseline=-1) + ascii_art(ident(3)) # optional - sage.modules
242+
sage: ascii_art(ident(2), baseline=-1) + ascii_art(ident(3)) # needs sage.modules
243243
[1 0][1 0 0]
244244
[0 1][0 1 0]
245245
[0 0 1]
246246
247247
We can determine the baseline of the separator::
248248
249-
sage: ascii_art(ident(1), ident(2), ident(3), sep=' -- ', sep_baseline=-1) # optional - sage.modules
249+
sage: ascii_art(ident(1), ident(2), ident(3), sep=' -- ', sep_baseline=-1) # needs sage.modules
250250
[1 0 0]
251251
-- [1 0] -- [0 1 0]
252252
[1] [0 1] [0 0 1]
@@ -255,7 +255,7 @@ def ascii_art(*obj, **kwds):
255255
an ascii art separator::
256256
257257
sage: sep_line = ascii_art('\n'.join(' | ' for _ in range(6)), baseline=6)
258-
sage: ascii_art(*Partitions(6), separator=sep_line, sep_baseline=0) # optional - sage.combinat sage.libs.flint
258+
sage: ascii_art(*Partitions(6), separator=sep_line, sep_baseline=0) # needs sage.combinat sage.libs.flint
259259
| | | | | | | | | | *
260260
| | | | | | | | | ** | *
261261
| | | | | | *** | | ** | * | *

src/sage/typeset/character_art.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ def __format__(self, fmt):
161161
162162
EXAMPLES::
163163
164-
sage: M = matrix([[1,2],[3,4]]) # optional - sage.matrix
165-
sage: format(ascii_art(M)) # optional - sage.matrix
164+
sage: M = matrix([[1,2],[3,4]]) # needs sage.matrix
165+
sage: format(ascii_art(M)) # needs sage.matrix
166166
'[1 2]\n[3 4]'
167-
sage: format(unicode_art(M)) # optional - sage.matrix
167+
sage: format(unicode_art(M)) # needs sage.matrix
168168
'\u239b1 2\u239e\n\u239d3 4\u23a0'
169169
"""
170170
return format(self._string_type(self), fmt)

src/sage/typeset/unicode_art.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def unicode_art(*obj, **kwds):
9898
⎮ x + π
9999
100100
sage: ident = lambda n: identity_matrix(ZZ, n)
101-
sage: unicode_art(ident(1), ident(2), ident(3), sep=' : ') # optional - sage.modules
101+
sage: unicode_art(ident(1), ident(2), ident(3), sep=' : ') # needs sage.modules
102102
⎛1 0 0⎞
103103
⎛1 0⎞ ⎜0 1 0⎟
104104
(1) : ⎝0 1⎠ : ⎝0 0 1⎠
@@ -107,7 +107,7 @@ def unicode_art(*obj, **kwds):
107107
an unicode art separator::
108108
109109
sage: sep_line = unicode_art('\n'.join(' ⎟ ' for _ in range(5)), baseline=5)
110-
sage: unicode_art(*AlternatingSignMatrices(3), # optional - sage.combinat sage.modules
110+
sage: unicode_art(*AlternatingSignMatrices(3), # needs sage.combinat sage.modules
111111
....: separator=sep_line, sep_baseline=1)
112112
⎟ ⎟ ⎟ ⎟ ⎟ ⎟
113113
⎛1 0 0⎞ ⎟ ⎛0 1 0⎞ ⎟ ⎛1 0 0⎞ ⎟ ⎛ 0 1 0⎞ ⎟ ⎛0 0 1⎞ ⎟ ⎛0 1 0⎞ ⎟ ⎛0 0 1⎞

0 commit comments

Comments
 (0)