diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2015-10-19 06:18:41 -0700 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2015-10-19 06:18:41 -0700 |
commit | eb209e260265f4747378214ba1aa9d6579e3639e (patch) | |
tree | 7ffb4968f8563c7bc30c88e0d3ba634121b0639f | |
parent | b3e109d5185381f3a000fa8397c55c5f38a7bda0 (diff) |
Check for headers in \x auto mode.
-rwxr-xr-x | pgcli/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index 1ee56836..6e1ef960 100755 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -533,7 +533,9 @@ def format_output(title, cur, headers, status, table_format, expanded=False, max else: tabulated, rows = tabulate(cur, headers, tablefmt=table_format, missingval='<null>') - if max_width and content_exceeds_width(rows[0], max_width): + if (max_width and + content_exceeds_width(rows[0], max_width) and + headers): output.append(expanded_table(rows, headers)) else: output.append(tabulated) |