diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-10-20 09:44:19 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-10-28 13:16:20 +0300 |
commit | 39b166b6b9bd00b3b801da8e425a7a7a380dec4e (patch) | |
tree | f26e5228eb84ba1303c0622e2b93507054fbe573 /sphinx/directives | |
parent | ec8d41b23780f4cb7302ab5f012a607d238db3d5 (diff) |
Fix #6742: end-before option of literalinclude skips first line
Diffstat (limited to 'sphinx/directives')
-rw-r--r-- | sphinx/directives/code.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py index aa5192f78..3bcfb917f 100644 --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -348,7 +348,7 @@ class LiteralIncludeReader: return lines[:lineno + 1] else: if lineno == 0: - return [] + pass # end-before ignores first line else: return lines[:lineno] if inclusive is True: |