Fix multi-paragraph docstrings.

This commit is contained in:
Dave Pifke
2012-03-15 22:04:28 +00:00
committed by Max Goodman
parent fb0b650490
commit 8a36d0ed77

View File

@@ -2508,7 +2508,7 @@ class ApihelpController(RedditController):
continue
if func.__doc__ and method in ('GET', 'POST'):
docs = func.__doc__.strip()
docs = re.sub(r'\n +', '\n', func.__doc__).strip()
if hasattr(func, 'oauth2_perms'):
scopes = func.oauth2_perms.get('allowed_scopes')
if scopes: