summaryrefslogtreecommitdiff
path: root/tests/test_directive_code.py
diff options
context:
space:
mode:
authorjfbu <jfbu@free.fr>2017-02-10 14:35:58 +0100
committerjfbu <jfbu@free.fr>2017-02-10 16:55:28 +0100
commita2338e4838223ed9c65397eba57f6fd14e1a062f (patch)
treedc8a426a48bbfa30b61ea8123d3974bead3024bb /tests/test_directive_code.py
parent839e924808ad5c8cad8bed567e86eb7cd6970d7c (diff)
downloadsphinx-git-a2338e4838223ed9c65397eba57f6fd14e1a062f.tar.gz
If ``:start-after:`` is used, make ``:lines:`` relative (close: #3412)
Diffstat (limited to 'tests/test_directive_code.py')
-rw-r--r--tests/test_directive_code.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py
index 4ebe937d8..b87f23a63 100644
--- a/tests/test_directive_code.py
+++ b/tests/test_directive_code.py
@@ -223,6 +223,12 @@ def test_literal_include_lineno_match(app, status, warning):
'14</pre></div></td>')
assert start_after in html
+ start_after_with_lines = (
+ '<td class="linenos"><div class="linenodiv"><pre>'
+ '2\n'
+ '3</pre></div></td>')
+ assert start_after_with_lines in html
+
start_at_end_at = (
'<td class="linenos"><div class="linenodiv"><pre>'
' 9\n'