@@ -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
@@ -1456,7 +1457,7 @@ class _sage_doc:
14561457 sage: browse_sage_doc._open("reference", testing=True)[0] # needs sagemath_doc_html
14571458 'http://localhost:8000/doc/live/reference/index.html'
14581459 sage: browse_sage_doc(identity_matrix, 'rst')[-107:-47] # needs sage.modules
1459- 'Full MatrixSpace of 3 by 3 sparse matrices over Integer Ring '
1460+ '... Full MatrixSpace of 3 by 3 sparse matrices... '
14601461 """
14611462 def __init__ (self ):
14621463 """
0 commit comments