diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2015-03-30 20:34:00 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2015-03-31 11:32:01 +0900 |
commit | 0b60eafe0ec690c8844bc881810b2728b627a343 (patch) | |
tree | 233cb0ce3debf8dbfbb0ae5e4487d916d07d7ed1 /sphinx/directives/code.py | |
parent | 0215b1fb108ab3a78af41375c69eac84722022c1 (diff) | |
download | sphinx-git-0b60eafe0ec690c8844bc881810b2728b627a343.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') |