summaryrefslogtreecommitdiff
path: root/doc/markup/code.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-08 18:36:58 +0100
committerGeorg Brandl <georg@python.org>2010-01-08 18:36:58 +0100
commitc80f52dfbfaf2148d2ce1695b706b1e95b22f997 (patch)
tree418ff1742f47efccf5a26775ce869c4011d81d47 /doc/markup/code.rst
parent2ca792f809cc0c2949d57464d95aea35269fd93e (diff)
downloadsphinx-git-c80f52dfbfaf2148d2ce1695b706b1e95b22f997.tar.gz
Added ``tab-width`` option to ``literalinclude`` directive.
Diffstat (limited to 'doc/markup/code.rst')
-rw-r--r--doc/markup/code.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/markup/code.rst b/doc/markup/code.rst
index 8c223297e..968711158 100644
--- a/doc/markup/code.rst
+++ b/doc/markup/code.rst
@@ -103,6 +103,9 @@ Includes
is absolute (starting with ``/``), it is relative to the top source
directory.
+ Tabs in the input are expanded if you give a ``tab-width`` option with the
+ desired tab width.
+
The directive also supports the ``linenos`` flag option to switch on line
numbers, and a ``language`` option to select a language different from the
current file's standard language. Example with options::
@@ -153,7 +156,7 @@ Includes
The ``pyobject``, ``lines``, ``start-after`` and ``end-before`` options,
as well as support for absolute filenames.
.. versionadded:: 1.0
- The ``prepend`` and ``append`` options.
+ The ``prepend`` and ``append`` options, as well as ``tab-width``.
.. rubric:: Footnotes