Added :start-at: and :end-at: parameters for literalinclude

This feature is discussed as part of issue #625.
This commit is contained in:
Ryan Hardin
2016-08-10 10:49:00 -04:00
parent 8a9459b308
commit 560b5725c9
3 changed files with 43 additions and 6 deletions

View File

@@ -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):