Skip to content

Commit

Permalink
tiny tweaks to formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
biasmv committed Jun 27, 2015
1 parent d52097b commit 453cc9e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/ext/pvsample.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
Adds the pv-sample directive that allows to show code for an
example which is at the same time executed life on the web-page.
"""
from docutils import nodes
from docutils.parsers.rst import Directive
from sphinx.util.compat import make_admonition
Expand Down Expand Up @@ -49,11 +53,11 @@ def run(self):
doc_dir)

prelude = RAW_CODE_PRELUDE % relative_static_path
raw_html_code = nodes.raw(code, prelude + code,
raw_html_code = nodes.raw(code, prelude + code + '</br>',
format='html')
set_source_info(self, literal)
set_source_info(self, raw_html_code)
return [raw_html_code, literal]
return [raw_html_code, nodes.subtitle('', 'Source Code'), literal]

class PVSampleListDirective(Directive):

Expand Down

0 comments on commit 453cc9e

Please sign in to comment.