@@ -694,7 +694,7 @@ def format(s, embedded=False):
694694 We check that the todo Sphinx extension is correctly activated::
695695
696696 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"
698698
699699 In the following use case, the ``nodetex`` directive would have been ignored prior
700700 to :issue:`11815`::
@@ -1135,10 +1135,11 @@ def search_src(string, extra1='', extra2='', extra3='', extra4='',
11351135 The following produces an error because the string 'fetch(' is a
11361136 malformed regular expression::
11371137
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
11421143
11431144 To fix this, *escape* the parenthesis with a backslash::
11441145
@@ -1186,7 +1187,6 @@ def search_src(string, extra1='', extra2='', extra3='', extra4='',
11861187 misc/sagedoc.py:... len(search_src("matrix", interact=False).splitlines())...
11871188 misc/sagedoc.py:... len(search_src("matrix", module="sage.calculus", interact=False).splitlines())...
11881189 misc/sagedoc.py:... len(search_src("matrix", path_re="calc"...
1189- misc/sagedoc.py:... print(search_src(" fetch(", "def", interact=False))...
11901190 misc/sagedoc.py:... print(search_src(r" fetch\(", "def", interact=False))...
11911191 misc/sagedoc.py:... print(search_src(r" fetch\(", "def", "pyx", interact=False))...
11921192 misc/sagedoc.py:... s = search_src('Matrix', path_re='matrix', interact=False); s.find('x') > 0...
@@ -1456,7 +1456,7 @@ class _sage_doc:
14561456 sage: browse_sage_doc._open("reference", testing=True)[0] # needs sagemath_doc_html
14571457 'http://localhost:8000/doc/live/reference/index.html'
14581458 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... '
14601460 """
14611461 def __init__ (self ):
14621462 """
0 commit comments