Skip to content

Commit

Permalink
Dedent docstrings
Browse files Browse the repository at this point in the history
In order for doc-strings to show up correctly in the client and in the
JSON API more generally, they need to be correctly dedented.
  • Loading branch information
waveform80 committed Aug 25, 2015
1 parent ec40e54 commit 0a4a72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umansysprop/server.py
Expand Up @@ -90,7 +90,7 @@ def api():
mod_name: {
'url': url_for('call', name=mod_name),
'title': (mod.__doc__ or '').strip(),
'doc': (mod.handler.__doc__ or '').strip(),
'doc': dedent(mod.handler.__doc__ or ''),
'params': [
field.name for field in mod.HandlerForm()
if field.name not in ('csrf_token', 'output_format')
Expand Down

0 comments on commit 0a4a72a

Please sign in to comment.