summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorRuss Webber <russ@rw.id.au>2013-08-04 16:39:07 +0800
committerRuss Webber <russ@rw.id.au>2013-08-05 23:45:48 +0800
commit5a8f5cefdd74c24eba02ab3bbfeb1fb29e2457cb (patch)
tree1c67487021208a9e53dbe2d0e69f9eac5001a39b /samples
parentea6d0cf5b539c5771e361106bd312eaa5dbf6dc2 (diff)
downloadpelican-5a8f5cefdd74c24eba02ab3bbfeb1fb29e2457cb.tar.gz
fix py3 support for sourcecode directive
added sourcecode to the functional test so it's tested *somewhere*. fixes #963
Diffstat (limited to 'samples')
-rw-r--r--samples/content/unbelievable.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/samples/content/unbelievable.rst b/samples/content/unbelievable.rst
index 20cb9dc7..745ff217 100644
--- a/samples/content/unbelievable.rst
+++ b/samples/content/unbelievable.rst
@@ -7,3 +7,14 @@ Or completely awesome. Depends the needs.
`a root-relative link to markdown-article <|filename|/cat1/markdown-article.md>`_
`a file-relative link to markdown-article <|filename|cat1/markdown-article.md>`_
+
+Testing sourcecode directive
+----------------------------
+
+.. sourcecode:: python
+ :linenos:
+
+ formatter = self.options and VARIANTS[self.options.keys()[0]]
+
+
+Lovely.