summaryrefslogtreecommitdiff
path: root/docutils/test
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2008-12-01 07:31:53 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2008-12-01 07:31:53 +0000
commit41ef6870051e05cad1cccc70281783fc3ccd539a (patch)
treeb5d42e7979ef9af67e9430cb6873d76351a5def8 /docutils/test
parentbc1b614099e1b28ab6de62bda19cf06aa3753b14 (diff)
downloaddocutils-41ef6870051e05cad1cccc70281783fc3ccd539a.tar.gz
failsave implementation of custom roles in latex2e
The latex2e writer currently translates <inline> nodes with a class argument (e.g. produced by a custom role or the upcoming syntax-highlighting souce-code directive) to specific LaTeX macros, which allows a style sheet to define this macro but leaves the document uncompilable without a special style sheet. The patch below lets the latex2ewriter produce code that 1. compiles without error ignoring the unknown classes 2. allows styling of the marked-up code in a custom stylesheet git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5742 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test')
-rw-r--r--docutils/test/functional/expected/standalone_rst_latex.tex6
1 files changed, 3 insertions, 3 deletions
diff --git a/docutils/test/functional/expected/standalone_rst_latex.tex b/docutils/test/functional/expected/standalone_rst_latex.tex
index bf960f87e..5a9578faf 100644
--- a/docutils/test/functional/expected/standalone_rst_latex.tex
+++ b/docutils/test/functional/expected/standalone_rst_latex.tex
@@ -1653,17 +1653,17 @@ A role based on an existing role.
\item {}
A new role.
-\docutilsrolecustomnew{one two three}
+\DUspan{customnew}{one two three}
\item {}
A role with class attribute.
-\docutilsrolespecial{interpreted text}
+\DUspan{special}{interpreted text}
\item {}
A role with class attribute.
-\docutilsrolevery{\docutilsrolespecial{interpreted text}}
+\DUspan{very,special}{interpreted text}
\end{itemize}