diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-02-25 16:54:49 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-02-25 16:54:49 +0900 |
commit | 9718c4d925bdd6772a1d7cf857a0c38bc6e75abe (patch) | |
tree | b8488426accc4a060c3ae06b47c6360c2da7f806 /sphinx/directives/code.py | |
parent | 675b5f4237a3482f298ecfe13291660fee37e26d (diff) | |
download | sphinx-git-9718c4d925bdd6772a1d7cf857a0c38bc6e75abe.tar.gz |
Fix a loop
Diffstat (limited to 'sphinx/directives/code.py')
-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 bbe323391..f6a328582 100644 --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -430,7 +430,7 @@ class LiteralInclude(Directive): logger.warning('line number spec is out of range(1-%d): %r' % (lines, self.options['emphasize_lines']), location=location) - extra_args['hl_lines'] = [x + 1 for x in hl_lines if x < len(lines)] + extra_args['hl_lines'] = [x + 1 for x in hl_lines if x < lines] extra_args['linenostart'] = reader.lineno_start if 'caption' in self.options: |