diff options
author | Takayuki Shimizukawa <shimizukawa+bitbucket@gmail.com> | 2014-10-07 22:55:43 +0900 |
---|---|---|
committer | Takayuki Shimizukawa <shimizukawa+bitbucket@gmail.com> | 2014-10-07 22:55:43 +0900 |
commit | 3b21de07697e880129dc897cbe31f7741291868a (patch) | |
tree | 42807ba0d41d5cade34f764c5537104ed87afa3a /tests/root/includes.txt | |
parent | 281da3ddc495678392540479d5cc56745a85ed99 (diff) | |
parent | f877c6532664cab5da69d0c8fedf08452522ad77 (diff) | |
download | sphinx-3b21de07697e880129dc897cbe31f7741291868a.tar.gz |
Merged in jpihl/sphinx-fork (pull request #301)
#1583: Allow the line numbering of the directive `literalinclude` to match that of the included file, using a new ``lineno-match`` option.
Diffstat (limited to 'tests/root/includes.txt')
-rw-r--r-- | tests/root/includes.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/root/includes.txt b/tests/root/includes.txt index e84cec06..907b81e9 100644 --- a/tests/root/includes.txt +++ b/tests/root/includes.txt @@ -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,8 + :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 |