diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2015-03-30 20:34:00 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2015-04-02 14:48:14 +0900 |
commit | 64d2f22eb47e10e5b36791a0d018bb1fb3a3d932 (patch) | |
tree | 1252a1d1753cc35fbe73a36d679dddcf9924f32b /sphinx/directives/code.py | |
parent | aa66e7860b61993df935aabf39dba0d2de33f156 (diff) | |
download | sphinx-git-64d2f22eb47e10e5b36791a0d018bb1fb3a3d932.tar.gz |
Fix #1790 literalinclude strips empty lines at the head and tail
Diffstat (limited to 'sphinx/directives/code.py')
-rw-r--r-- | sphinx/directives/code.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py index 5043a31e4..f31ba7a99 100644 --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -302,15 +302,6 @@ class LiteralInclude(Directive): res.append(line) lines = res - if 'lineno-match' in self.options: - # handle that docutils remove preceding lines which only contains - # line separation. - for line in lines: - # check if line contains anything else than line separation. - if line and line.splitlines()[0]: - break - linenostart += 1 - prepend = self.options.get('prepend') if prepend: lines.insert(0, prepend + '\n') |