@@ -694,7 +694,7 @@ def format(s, embedded=False):
694
694
We check that the todo Sphinx extension is correctly activated::
695
695
696
696
sage: sage.misc.sagedoc.format(sage.combinat.ranker.on_fly.__doc__) # needs sphinx
697
- " Return ... Todo: add tests as in combinat::rankers\n"
697
+ "... Return ...Todo: add tests as in combinat::rankers\n"
698
698
699
699
In the following use case, the ``nodetex`` directive would have been ignored prior
700
700
to :issue:`11815`::
@@ -1135,10 +1135,11 @@ def search_src(string, extra1='', extra2='', extra3='', extra4='',
1135
1135
The following produces an error because the string 'fetch(' is a
1136
1136
malformed regular expression::
1137
1137
1138
- sage: print(search_src(" fetch(", "def", interact=False))
1139
- Traceback (most recent call last):
1140
- ...
1141
- error: missing ), unterminated subpattern at position 6
1138
+ sage: try:
1139
+ ....: print(search_src(" fetch(", "def", interact=False))
1140
+ ....: except Exception as e:
1141
+ ....: print(e)
1142
+ missing ), unterminated subpattern at position 6
1142
1143
1143
1144
To fix this, *escape* the parenthesis with a backslash::
1144
1145
@@ -1186,7 +1187,6 @@ def search_src(string, extra1='', extra2='', extra3='', extra4='',
1186
1187
misc/sagedoc.py:... len(search_src("matrix", interact=False).splitlines())...
1187
1188
misc/sagedoc.py:... len(search_src("matrix", module="sage.calculus", interact=False).splitlines())...
1188
1189
misc/sagedoc.py:... len(search_src("matrix", path_re="calc"...
1189
- misc/sagedoc.py:... print(search_src(" fetch(", "def", interact=False))...
1190
1190
misc/sagedoc.py:... print(search_src(r" fetch\(", "def", interact=False))...
1191
1191
misc/sagedoc.py:... print(search_src(r" fetch\(", "def", "pyx", interact=False))...
1192
1192
misc/sagedoc.py:... s = search_src('Matrix', path_re='matrix', interact=False); s.find('x') > 0...
@@ -1456,7 +1456,7 @@ class _sage_doc:
1456
1456
sage: browse_sage_doc._open("reference", testing=True)[0] # needs sagemath_doc_html
1457
1457
'http://localhost:8000/doc/live/reference/index.html'
1458
1458
sage: browse_sage_doc(identity_matrix, 'rst')[-107:-47] # needs sage.modules
1459
- 'Full MatrixSpace of 3 by 3 sparse matrices over Integer Ring '
1459
+ '... Full MatrixSpace of 3 by 3 sparse matrices... '
1460
1460
"""
1461
1461
def __init__ (self ):
1462
1462
"""
0 commit comments