summaryrefslogtreecommitdiff
path: root/pycco/main.py
diff options
context:
space:
mode:
authorZach Smith <zd@zdsmith.com>2015-12-28 12:06:36 -0500
committerZach Smith <zd@zdsmith.com>2015-12-28 12:06:36 -0500
commit326457dda6da647565806f6363d9fcf17b52fe64 (patch)
treeec1e0d5b23c79aa5f9bb19dbf5fc6f65882e7e89 /pycco/main.py
parent239816deb0db2a3136b5442bca7422faf67d953d (diff)
downloadpycco-326457dda6da647565806f6363d9fcf17b52fe64.tar.gz
(minor) Update hypothesis versions, insert needed newline in docs
Diffstat (limited to 'pycco/main.py')
-rw-r--r--pycco/main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pycco/main.py b/pycco/main.py
index c9a3612..22f889a 100644
--- a/pycco/main.py
+++ b/pycco/main.py
@@ -64,6 +64,7 @@ def parse(code, language):
Given a string of source code, parse out each comment and the code that
follows it, and create an individual **section** for it.
Sections take the form:
+
{ "docs_text": ...,
"docs_html": ...,
"code_text": ...,
@@ -252,6 +253,8 @@ def highlight(sections, language, preserve_paths=True, outdir=None):
outdir=outdir))
section["num"] = i
+ return sections
+
# === HTML Code generation ===