diff options
Diffstat (limited to 'doc/markup/code.rst')
-rw-r--r-- | doc/markup/code.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/markup/code.rst b/doc/markup/code.rst index 9dafdb183..936080d6e 100644 --- a/doc/markup/code.rst +++ b/doc/markup/code.rst @@ -208,6 +208,22 @@ additional feature that if you leave the value empty, the shown filename will be exactly the one given as an argument. +Dedent +^^^^^^ + +.. versionadded:: 1.3 + +A ``dedent`` option can be given to strip a precedence characters from the code +block. For example:: + + .. literalinclude:: example.rb + :language: ruby + :dedent: 4 + :lines: 10-15 + +:rst:dir:`code-block` also supports the ``dedent`` option. + + .. rubric:: Footnotes .. [1] There is a standard ``.. include`` directive, but it raises errors if the |