Ticket #5653: trac_5653-doc.patch

File trac_5653-doc.patch, 1.4 KB (added by jhpalmieri, 12 years ago)

apply on top of the other patch

  • sage/misc/sagedoc.py

    # 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  
    174174
    175175    s = re.sub(itempattern, itemreplace, s)
    176176
     177    for a,b in nonmath_substitutes:
     178        s = s.replace(a,b)
    177179    if not embedded: # not in the notebook
    178180        for a,b in math_substitutes:  # do math substitutions
    179181            s = s.replace(a,b)
     
    181183        s = s.replace('.. math::\n', '')  # get rid of .. math:: directives
    182184    else:
    183185        s = s.replace('\\','\\\\')    # double up backslashes for jsMath
    184     for a,b in nonmath_substitutes:
    185         s = s.replace(a,b)
    186186    return s
    187187
    188188def format(s, embedded=False):
  • sage/misc/sageinspect.py

    diff -r 0399e13df0a4 -r c7f3073657e8 sage/misc/sageinspect.py
    a b  
    443443    EXAMPLES::
    444444
    445445        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'
    448448
    449449    AUTHORS:
    450450