From 8a36d0ed77e3dfc4b7fbbbc6ae65ee2978c1d370 Mon Sep 17 00:00:00 2001 From: Dave Pifke Date: Thu, 15 Mar 2012 22:04:28 +0000 Subject: [PATCH] Fix multi-paragraph docstrings. --- r2/r2/controllers/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/controllers/api.py b/r2/r2/controllers/api.py index d95ebc0b2..cf1feae20 100644 --- a/r2/r2/controllers/api.py +++ b/r2/r2/controllers/api.py @@ -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: