summaryrefslogtreecommitdiff
path: root/test/functional/expected/standalone_rst_xetex.tex
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2011-09-02 21:09:13 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2011-09-02 21:09:13 +0000
commit77f8bcca081d90cf86baa92a912bae126bacf8e6 (patch)
tree60baff6e9462b46701eb07a79bc921ed1ea892d8 /test/functional/expected/standalone_rst_xetex.tex
parentea2a368467d1ca9410beaf287a28e930972a3055 (diff)
downloaddocutils-77f8bcca081d90cf86baa92a912bae126bacf8e6.tar.gz
Turn off code parsing in the standalone functional tests
to get identical results with/without installed Pygments highlighter. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7120 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/functional/expected/standalone_rst_xetex.tex')
-rw-r--r--test/functional/expected/standalone_rst_xetex.tex20
1 files changed, 11 insertions, 9 deletions
diff --git a/test/functional/expected/standalone_rst_xetex.tex b/test/functional/expected/standalone_rst_xetex.tex
index 8034c0a12..670da275d 100644
--- a/test/functional/expected/standalone_rst_xetex.tex
+++ b/test/functional/expected/standalone_rst_xetex.tex
@@ -1375,21 +1375,24 @@ text},~footnotes\DUfootnotemark{id22}{id8}{1},~%
\label{code}%
}
-Blocks of source code can be set with the \DUroletitlereference{code} directive. If the
-code language is specified, the content is parsed and tagged by the
-\href{http://pygments.org/}{Pygments}\DUfootnotemark{id34}{id33}{6} syntax highlighter and can be formatted with a style sheet:
+Blocks of source code can be set with the \DUroletitlereference{code} directive. If the code
+language is specified, the content is parsed and tagged by the \href{http://pygments.org/}{Pygments}\DUfootnotemark{id34}{id33}{6}
+syntax highlighter and can be formatted with a style sheet. (Code parsing
+is turned off using the \texttt{syntax-highlight} config setting in the test
+conversions in order to get identical results with/without installed
+Pygments highlighter.)
%
\begin{quote}{\ttfamily \raggedright \noindent
-\DUrole{k}{print}~\DUrole{s}{'This~is~Python~code.'}
+print~'This~is~Python~code.'
}
\end{quote}
There is an option for line numbers with optional start value:
%
\begin{quote}{\ttfamily \raggedright \noindent
-\DUrole{l}{\DUrole{n}{~8~}}\DUrole{c}{\#~print~integers~from~0~to~9:}~\\
-~\DUrole{ln}{~9~}~\DUrole{k}{for}~\DUrole{n}{i}~\DUrole{ow}{in}~\DUrole{nb}{range}\DUrole{p}{(}\DUrole{mi}{10}\DUrole{p}{):}~\\
-~\DUrole{ln}{10~}~~~~\DUrole{k}{print}~\DUrole{n}{i}
+\DUrole{l}{\DUrole{n}{~8~}}\#~print~integers~from~0~to~9:\\
+~\DUrole{ln}{~9~}for~i~in~range(10):\\
+~\DUrole{ln}{10~}~~~~print~i
}
\end{quote}
@@ -1402,8 +1405,7 @@ known) or as base for special code roles, e.g.,
\begin{quote}
Docutils uses LaTeX syntax for math directives and roles:
-\texttt{\DUrole{code}{\DUrole{latex}{\DUrole{tex}{\DUrole{k}{\textbackslash{}alpha} = f(x)
-}}}} prints $\alpha = f(x)$.
+\texttt{\DUrole{code}{\DUrole{latex}{\DUrole{tex}{\textbackslash{}alpha = f(x)}}}} prints $\alpha = f(x)$.
\end{quote}