# HG changeset patch
# User J. H. Palmieri <palmieri@math.washington.edu>
# Date 1248362560 25200
# Node ID c7f3073657e8b2a07465b62cbb4da4007ed698d5
# Parent 0399e13df0a4cc8a186b8be5ba722e992e35ec45
doc patch for #5653
diff -r 0399e13df0a4 -r c7f3073657e8 sage/misc/sagedoc.py
a
|
b
|
|
174 | 174 | |
175 | 175 | s = re.sub(itempattern, itemreplace, s) |
176 | 176 | |
| 177 | for a,b in nonmath_substitutes: |
| 178 | s = s.replace(a,b) |
177 | 179 | if not embedded: # not in the notebook |
178 | 180 | for a,b in math_substitutes: # do math substitutions |
179 | 181 | s = s.replace(a,b) |
… |
… |
|
181 | 183 | s = s.replace('.. math::\n', '') # get rid of .. math:: directives |
182 | 184 | else: |
183 | 185 | s = s.replace('\\','\\\\') # double up backslashes for jsMath |
184 | | for a,b in nonmath_substitutes: |
185 | | s = s.replace(a,b) |
186 | 186 | return s |
187 | 187 | |
188 | 188 | def format(s, embedded=False): |
diff -r 0399e13df0a4 -r c7f3073657e8 sage/misc/sageinspect.py
a
|
b
|
|
443 | 443 | EXAMPLES:: |
444 | 444 | |
445 | 445 | sage: from sage.misc.sageinspect import sage_getdoc |
446 | | sage: sage_getdoc(identity_matrix)[5:43] |
447 | | 'Return the `n times n` identity matrix' |
| 446 | sage: sage_getdoc(identity_matrix)[5:39] |
| 447 | 'Return the `n x n` identity matrix' |
448 | 448 | |
449 | 449 | AUTHORS: |
450 | 450 | |