From baf4619c6d2033ceab253a597588451d6dc00525 Mon Sep 17 00:00:00 2001 From: Mahmoud Hashemi Date: Mon, 18 Apr 2016 22:29:24 -0700 Subject: [PATCH] a couple docs formatting fixes for strutils --- boltons/strutils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/boltons/strutils.py b/boltons/strutils.py index c24ba50..e56ad7d 100644 --- a/boltons/strutils.py +++ b/boltons/strutils.py @@ -30,7 +30,8 @@ __all__ = ['camel2under', 'under2camel', 'slugify', 'split_punct_ws', 'unit_len', 'ordinalize', 'cardinalize', 'pluralize', 'singularize', 'asciify', 'is_ascii', 'is_uuid', 'html2text', 'strip_ansi', 'bytes2human', 'find_hashtags', 'a10n', 'gunzip_bytes', - 'iter_splitlines', 'indent', 'escape_shell_args', 'args2cmd', 'args2sh'] + 'iter_splitlines', 'indent', 'escape_shell_args', + 'args2cmd', 'args2sh'] _punct_ws_str = string.punctuation + string.whitespace @@ -670,7 +671,7 @@ def indent(text, margin, newline='\n', key=bool): Args: text (str): The text to indent. margin (str): The string to prepend to each line. - newline (str): The newline used to rejoin the lines (default: \\n) + newline (str): The newline used to rejoin the lines (default: ``\\n``) key (callable): Called on each line to determine whether to indent it. Default: :class:`bool`, to ensure that empty lines do not get whitespace added.