Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Commit

Permalink
Improve value of linenos flag
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Aug 19, 2015
1 parent 4cde99c commit 1bc5885
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sensio/sphinx/codeblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
"""
class NumberedCodeBlock(CodeBlock):
def run(self):
literal = super(NumberedCodeBlock, self).run()[0];
literal['linenos'] = 'linenos'

return [literal]
self.options['linenos'] = 'table'
return super(NumberedCodeBlock, self).run();

def setup(app):
app.add_directive('code-block', NumberedCodeBlock)
Expand Down

0 comments on commit 1bc5885

Please sign in to comment.