diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2016-06-03 19:13:02 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2016-06-03 19:13:02 +0200 |
| commit | 12d9aee564f1091257749086fd8b49538f698be9 (patch) | |
| tree | a1ab1aec76942ce0bc266583c6a8aff642889927 /docs | |
| parent | 88a9dafe00e996f0b832849414f483f5116b52d9 (diff) | |
| parent | 9b84aac37a4099f4788508f98b7b1ed3010c424e (diff) | |
| download | sqlparse-12d9aee564f1091257749086fd8b49538f698be9.tar.gz | |
Merge pull request #248 from fimmtiu/add-wrap-after-option
Add --wrap_after option for wrapping identifier lists.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/source/api.rst | 4 | ||||
| -rw-r--r-- | docs/sqlformat.1 | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/source/api.rst b/docs/source/api.rst index 518a428..e9fcdaa 100644 --- a/docs/source/api.rst +++ b/docs/source/api.rst @@ -52,6 +52,10 @@ The :meth:`~sqlparse.format` function accepts the following keyword arguments. ``indent_width`` The width of the indentation, defaults to 2. +``wrap_after`` + The column limit for wrapping comma-separated lists. If unspecified, it + puts every item in the list on its own line. + ``output_format`` If given the output is additionally formatted to be used as a variable in a programming language. Allowed values are "python" and "php". diff --git a/docs/sqlformat.1 b/docs/sqlformat.1 index a42ea60..7d7987a 100644 --- a/docs/sqlformat.1 +++ b/docs/sqlformat.1 @@ -49,6 +49,10 @@ Set indent width to .IR INDENT_WIDTH . Default is 2 spaces. .TP +\fB\-\-wrap_after\fR=\fIWRAP_AFTER\fR +The column limit for wrapping comma-separated lists. If unspecified, it +puts every item in the list on its own line. +.TP \fB\-\-strip\-comments Remove comments. .TP |
