homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jmillikin
Recipients georg.brandl, jmillikin
Date 2008年04月04日.04:29:05
SpamBayes Score 0.11366063
Marked as misclassified No
Message-id <1207283352.64.0.672793099333.issue2545@psf.upfronthosting.co.za>
In-reply-to
Content
Sphinx seems to need tabs expanded in reST, but the autodoc extension
doesn't do so. The following patch is very small, and fixes the issue on
my system.
Oddly, I can reproduce this on a Linux system with doctools and docutils
trunk, but not on a Mac with doctools and docutils trunk vOv.
Index: ext/autodoc.py
===================================================================
--- ext/autodoc.py (revision 62140)
+++ ext/autodoc.py (working copy)
@@ -41,7 +41,8 @@
 """
 if not s or s.isspace():
 return ['']
- nl = s.expandtabs().rstrip().find('\n')
+ s = s.expandtabs ()
+ nl = s.rstrip().find('\n')
 if nl == -1:
 # Only one line...
 return [s.strip(), '']
History
Date User Action Args
2008年04月04日 04:29:14jmillikinsetspambayes_score: 0.113661 -> 0.11366063
recipients: + jmillikin, georg.brandl
2008年04月04日 04:29:12jmillikinsetspambayes_score: 0.113661 -> 0.113661
messageid: <1207283352.64.0.672793099333.issue2545@psf.upfronthosting.co.za>
2008年04月04日 04:29:09jmillikinlinkissue2545 messages
2008年04月04日 04:29:07jmillikincreate

AltStyle によって変換されたページ (->オリジナル) /