From 204b77954eacc85615eace5ac895fab5ebb16e04 Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Tue, 9 Jul 2013 10:10:33 +0200 Subject: Add option to truncate long string literals. --- docs/source/api.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs') diff --git a/docs/source/api.rst b/docs/source/api.rst index 99e50e2..518a428 100644 --- a/docs/source/api.rst +++ b/docs/source/api.rst @@ -35,6 +35,14 @@ The :meth:`~sqlparse.format` function accepts the following keyword arguments. ``strip_comments`` If ``True`` comments are removed from the statements. +``truncate_strings`` + If ``truncate_strings`` is a positive integer, string literals longer than + the given value will be truncated. + +``truncate_char`` (default: "[...]") + If long string literals are truncated (see above) this value will be append + to the truncated string. + ``reindent`` If ``True`` the indentations of the statements are changed. -- cgit v1.2.1