summaryrefslogtreecommitdiff
path: root/docutils/test/functional/input
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-11-26 16:51:46 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-11-26 16:51:46 +0000
commitd031e95f85c0bec006dfb505dc67153f1adb8fe1 (patch)
tree577000b7f5f4e5760c9a985cc482e9ccf131a160 /docutils/test/functional/input
parent28502503f158e26be8ec3e759944cd4fb5001420 (diff)
downloaddocutils-d031e95f85c0bec006dfb505dc67153f1adb8fe1.tar.gz
added test for ``raw`` role and directive
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@2874 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional/input')
-rw-r--r--docutils/test/functional/input/data/standard.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/docutils/test/functional/input/data/standard.txt b/docutils/test/functional/input/data/standard.txt
index a8d773242..69afbbc67 100644
--- a/docutils/test/functional/input/data/standard.txt
+++ b/docutils/test/functional/input/data/standard.txt
@@ -588,3 +588,38 @@ Here's one:
Double-dashes -- "--" -- must be escaped somehow in HTML output.
(View the HTML source to see the comment.)
+
+Raw text
+--------
+
+This does not necessarily look nice, because there may be missing white space.
+
+It's just there to freeze the behavior.
+
+.. raw:: html latex
+
+ A test.
+
+.. raw:: html latex
+
+ Second test.
+
+.. class:: myclass
+
+.. raw:: html latex
+
+ Another test with myclass set.
+
+.. role:: raw-role(raw)
+ :format: html latex
+ :class: myrawroleclass
+
+This is the :raw-role:`fourth test` with myrawroleclass set.
+
+.. raw:: html
+
+ Fifth test in HTML.<br />Line two.
+
+.. raw:: latex
+
+ Fifth test in LaTeX.\\Line two.