Merge with 'stable'

This commit is contained in:
shimizukawa
2016-01-24 13:47:51 +09:00
11 changed files with 130 additions and 16 deletions

View File

@@ -0,0 +1,13 @@
===========================
Literal Includes for python
===========================
block start with blank or comment
=================================
.. literalinclude:: target.py
:pyobject: block_start_with_comment
.. literalinclude:: target.py
:pyobject: block_start_with_blank

View File

@@ -0,0 +1,22 @@
# Literally included file using Python highlighting
# -*- coding: utf-8 -*-
foo = "Including Unicode characters: üöä"
class Foo:
pass
class Bar:
def baz():
pass
# comment after Bar class definition
def bar(): pass
def block_start_with_comment():
# Comment
return 1
def block_start_with_blank():
return 1