Apply dedent to descriptions (#416) (#464)

This commit is contained in:
yurihs
2019-11-14 12:13:40 +00:00
committed by Cristi Vîjdea
parent 9966297f87
commit 456b697ca2
+4
View File
@@ -1,6 +1,7 @@
import inspect
import logging
import sys
import textwrap
from collections import OrderedDict
from decimal import Decimal
@@ -438,6 +439,9 @@ def force_real_str(s, encoding='utf-8', strings_only=False, errors='strict'):
if type(s) != str:
s = '' + s
# Remove common indentation to get the correct Markdown rendering
s = textwrap.dedent(s)
return s