# HG changeset patch
# User J. H. Palmieri
# Date 1266618045 28800
# Node ID c2f0b5b39d23a02406607420085ea22c3bcd3295
# Parent 23f8091165aac046a4c57991e7c3667cec78c2d8
trac #8244: sagedoc patch
diff -r 23f8091165aa -r c2f0b5b39d23 sage/misc/sagedoc.py
--- a/sage/misc/sagedoc.py Fri Feb 19 13:21:31 2010 -0800
+++ b/sage/misc/sagedoc.py Fri Feb 19 14:20:45 2010 -0800
@@ -194,8 +194,8 @@
More precisely, do a regular expression search. Replace a plain
dollar sign ($) by a backtick (`). Replace an escaped dollar sign
- (\$) by a dollar sign ($). Don't change a dollar sign preceded or
- followed by a backtick (`$ or $`), because of strings like
+ (\\$) by a dollar sign ($). Don't change a dollar sign preceded or
+ followed by a backtick (\`$ or \$`), because of strings like
"``$HOME``". Don't make any changes on lines starting with more
spaces than the first nonempty line in ``s``, because those are
indented and hence part of a block of code or examples.
@@ -211,7 +211,7 @@
sage: process_dollars('some math: $x=y$')
'some math: `x=y`'
- Replace \$ with $, and don't do anything when backticks are involved::
+ Replace \\$ with $, and don't do anything when backticks are involved::
sage: process_dollars(r'a ``$REAL`` dollar sign: \$')
'a ``$REAL`` dollar sign: $'
@@ -228,7 +228,7 @@
sage: process_dollars(r'f(n) = 0 \text{ if $n$ is prime}')
'f(n) = 0 \\text{ if $n$ is prime}'
- This is not perfect:
+ This is not perfect::
sage: process_dollars(r'$f(n) = 0 \text{ if $n$ is prime}$')
'`f(n) = 0 \\text{ if $n$ is prime}$'
@@ -283,7 +283,7 @@
def process_mathtt(s, embedded=False):
r"""nodetex
- Replace \mathtt{BLAH} with either \verb|BLAH| (in the notebook) or
+ Replace \\mathtt{BLAH} with either \\verb|BLAH| (in the notebook) or
BLAH (from the command line).
INPUT: