summaryrefslogtreecommitdiff
path: root/doc/markup
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
commit1be1668cf717e78a1bca86df8d1f6493fe33dac4 (patch)
tree418ff1742f47efccf5a26775ce869c4011d81d47 /doc/markup
parenta1614c9b15a76e7218b00dacde6e11889b17648b (diff)
downloadsphinx-1be1668cf717e78a1bca86df8d1f6493fe33dac4.tar.gz
Added ``tab-width`` option to ``literalinclude`` directive.
Diffstat (limited to 'doc/markup')
-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 8c223297..96871115 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