From 54de3a4357e8ae89667091b1a4aa11f7b64997d7 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Fri, 19 Jul 2013 12:32:32 +0200 Subject: [PATCH] Use standard line continuation to make pg_view happpy. --- pg_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg_view.py b/pg_view.py index 5df7305..927a6ee 100644 --- a/pg_view.py +++ b/pg_view.py @@ -2259,7 +2259,7 @@ def show_collector_data(self, collector, clock=False): # now check if we need to add ellipsis to indicate that the value has been truncated. # we don't do this if the value is less than a certain length or when the column is marked as # containing truncated values, but the actual value is not truncated. - if layout[field].get('truncate', False) and w > self.MIN_ELLIPSIS_FIELD_LENGTH + if layout[field].get('truncate', False) and w > self.MIN_ELLIPSIS_FIELD_LENGTH \ and w < len(str(row[field])): text = str(row[field])[:w - 3] + '...' else: