Skip to content

Commit

Permalink
Use standard line continuation to make pg_view happpy.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyklyukin committed Jul 19, 2013
1 parent 92a9316 commit 54de3a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 54de3a4

Please sign in to comment.