#1583: Allow the line numbering of the directive literalinclude to match that of the included file, using a new `lineno-match` option.

This commit is contained in:
Jeppe Pihl committed 2014-09-30 00:11:28 +02:00
1 parent 86ff9589bc
commit de8f428528
4 files changed
+43 -11

No files matched your search

+16
View File
@@ -71,6 +71,22 @@ Literalinclude options
:tab-width: 8
:language: python
.. cssclass:: inc-pyobj-lines-match
.. literalinclude:: literal.inc
:pyobject: Foo
:lineno-match:
.. cssclass:: inc-lines-match
.. literalinclude:: literal.inc
:lines: 6-7,9
:lineno-match:
.. cssclass:: inc-startend-match
.. literalinclude:: literal.inc
:start-after: coding: utf-8
:end-before: class Foo
:lineno-match:
Test if dedenting before parsing works.
.. highlight:: python