diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-10-12 19:54:33 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-12 19:54:33 +0900 |
| commit | 111b7f4c721a2bf8be4768340582ea0b1d51914f (patch) | |
| tree | 8960b7635f110d2d9948200ae166ddad848c7383 /tests/test_directive_code.py | |
| parent | 1f2e357107d9659afa448f23a77fc9e4f21db9cb (diff) | |
| parent | 560b5725c913c06731de3ea57d660488fba5faf6 (diff) | |
| download | sphinx-git-111b7f4c721a2bf8be4768340582ea0b1d51914f.tar.gz | |
Merge pull request #2843 from rthardin/issue_625_start_at_end_at
Add :start-at: and :end-at: parameters for literalinclude
Diffstat (limited to 'tests/test_directive_code.py')
| -rw-r--r-- | tests/test_directive_code.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py index 6751c0592..a29db6b90 100644 --- a/tests/test_directive_code.py +++ b/tests/test_directive_code.py @@ -222,6 +222,13 @@ def test_literal_include_lineno_match(app, status, warning): '14</pre></div></td>') assert start_after in html + start_at_end_at = ( + '<td class="linenos"><div class="linenodiv"><pre>' + ' 9\n' + '10\n' + '11</pre></div></td>') + assert start_at_end_at in html + @with_app('latex', testroot='directive-code') def test_literalinclude_file_whole_of_emptyline(app, status, warning): |
