summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-08-06 21:36:06 (GMT)
committerFred Drake <fdrake@acm.org>2002-08-06 21:36:06 (GMT)
commit31f3db39f395eef33cb23f2862291c62aaed623f (patch)
tree78bf4d2c871fa78c34adddc865ab62adaefcf52c /Doc
parent2d702465b3de36d4689fff0fd497ca10876f6461 (diff)
downloadcpython-31f3db39f395eef33cb23f2862291c62aaed623f.zip
cpython-31f3db39f395eef33cb23f2862291c62aaed623f.tar.gz
cpython-31f3db39f395eef33cb23f2862291c62aaed623f.tar.bz2
Fix the markup so it doesn't break formatting.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ref/ref2.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/ref/ref2.tex b/Doc/ref/ref2.tex
index c8ecb4f..56d5bb7 100644
--- a/Doc/ref/ref2.tex
+++ b/Doc/ref/ref2.tex
@@ -75,7 +75,7 @@ Comments are ignored by the syntax; they are not tokens.
\subsection{Encoding declarations\label{encodings}}
If a comment in the first or second line of the Python script matches
-the regular expression "coding[=:]\s*([\w-_.]+)", this comment is
+the regular expression \regexp{coding[=:]\e s*([\e w-_.]+)}, this comment is
processed as an encoding declaration; the first group of this
expression names the encoding of the source code file. The recommended
forms of this expression are
@@ -91,9 +91,9 @@ which is recognized also by GNU Emacs, and
\end{verbatim}
which is recognized by Bram Moolenar's VIM. In addition, if the first
-bytes of the file are the UTF-8 signature ($'\xef\xbb\xbf'$), the
-declared file encoding is UTF-8 (this is supported, among others, by
-Microsoft's notepad.exe).
+bytes of the file are the UTF-8 byte-order mark
+(\code{'\e xef\e xbb\e xbf'}), the declared file encoding is UTF-8
+(this is supported, among others, by Microsoft's \program{notepad}).
If an encoding is declared, the encoding name must be recognized by
Python. % XXX there should be a list of supported encodings.