parent
9966297f87
commit
456b697ca2
|
|
@ -1,6 +1,7 @@
|
||||||
import inspect
|
import inspect
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
import textwrap
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from decimal import Decimal
|
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:
|
if type(s) != str:
|
||||||
s = '' + s
|
s = '' + s
|
||||||
|
|
||||||
|
# Remove common indentation to get the correct Markdown rendering
|
||||||
|
s = textwrap.dedent(s)
|
||||||
|
|
||||||
return s
|
return s
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue