[Python-checkins] r62171 - doctools/trunk/sphinx/ext/autodoc.py
georg.brandl
python-checkins at python.org
Sat Apr 5 19:28:37 CEST 2008
Author: georg.brandl
Date: Sat Apr 5 19:28:37 2008
New Revision: 62171
Modified:
doctools/trunk/sphinx/ext/autodoc.py
Log:
Properly expand tabs in docstrings.
Modified: doctools/trunk/sphinx/ext/autodoc.py
==============================================================================
--- doctools/trunk/sphinx/ext/autodoc.py (original)
+++ doctools/trunk/sphinx/ext/autodoc.py Sat Apr 5 19:28:37 2008
@@ -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(), '']
More information about the Python-checkins
mailing list