summaryrefslogtreecommitdiff
path: root/test/functional/input
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2011-09-17 21:03:28 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2011-09-17 21:03:28 +0000
commit8d4f176f509e1aaf3aa6f37a632f688ed77fe7b9 (patch)
tree7a4829cd346eed960d52875592b4f03d02d2734d /test/functional/input
parent27b584a0d24cd60e597d5d2ade889ec75b858356 (diff)
downloaddocutils-8d4f176f509e1aaf3aa6f37a632f688ed77fe7b9.tar.gz
"code" option of the "include" directive, tests
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7129 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/functional/input')
-rw-r--r--test/functional/input/data/math.txt1
-rw-r--r--test/functional/input/data/standard.txt10
2 files changed, 9 insertions, 2 deletions
diff --git a/test/functional/input/data/math.txt b/test/functional/input/data/math.txt
index 15acdcdd0..c296fddec 100644
--- a/test/functional/input/data/math.txt
+++ b/test/functional/input/data/math.txt
@@ -42,7 +42,6 @@ The Schrödinger equation
.. math:: :name: eq:schrödinger
i\hbar \frac{∂}{∂t}Ψ = \hat{H}Ψ,
-
with the *wave function* :math:`Ψ`, describes how the quantum state of a
physical system changes in time.
diff --git a/test/functional/input/data/standard.txt b/test/functional/input/data/standard.txt
index aa4d431d2..162b70a19 100644
--- a/test/functional/input/data/standard.txt
+++ b/test/functional/input/data/standard.txt
@@ -769,7 +769,8 @@ Pygments highlighter.)
print 'This is Python code.'
-There is an option for line numbers with optional start value:
+The ``:number-lines:`` option (with optional start value) generates line
+numbers:
.. code:: python
:number-lines: 8
@@ -792,6 +793,13 @@ known) or as base for special code roles, e.g.,
.. _Pygments: http://pygments.org/
+The ``:code:`` option of the `include` directive sets the included content
+as a code block, here the rst file ``header_footer.txt`` with line numbers:
+
+.. include:: header_footer.txt
+ :code: rst
+ :number-lines:
+
Substitution Definitions
------------------------