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: