On 20/04/14 03:12, Wes Turner wrote:
>
> Pull
> Request:
> https://bitbucket.org/birkenfeld/sphinx/pull-request/236/1456-apidoc-add-a-m-option-to-put-module/diff
>
Wes, here is a little bugfix. Add an additional empty line after the
automodule directive. Otherwise packages with empty docstring caused a
syntax error.
Luc
$ hg diff sphinx/apidoc.py
diff -r c171d4eef221 sphinx/apidoc.py
--- a/sphinx/apidoc.py Sat Apr 19 19:08:41 2014 -0500
+++ b/sphinx/apidoc.py Wed Apr 23 09:51:40 2014 +0300
@@ -98,6 +98,7 @@
if opts.modulefirst:
text += format_directive(subroot, master_package)
+ text += '\n'
# build a list of directories that are szvpackages (contain an
INITPY file)
subs = [sub for sub in subs if path.isfile(path.join(root, sub,
INITPY))]
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.