RM 6427 - Newlines in text columns of resultset show an allegedly "empty" field - Mailing list pgadmin-hackers

From Dave Page
Subject RM 6427 - Newlines in text columns of resultset show an allegedly "empty" field
Date
Msg-id CA+OCxozRoYYgSp+BRrovk31uzn4sB0JCL6ztcgaOjpx6qnfbqA@mail.gmail.com
Whole thread Raw
Responses Re: RM 6427 - Newlines in text columns of resultset show an allegedly "empty" field  (Khushboo Vashi <khushboo.vashi@enterprisedb.com>)
List pgadmin-hackers
Here's a simple patch for $SUBJECT. It will remove any leading spaces from the grid cell display and replace them with '[...] '. In edit mode, the data is unchanged.

The only downside I can see to this is that the tooltip will show the modified data when it probably should actually show the un-modified data. Unfortunately that's handled by a SlickGrid plugin, which would have to be vendorised and modified (perhaps non-trivially). I don't think that's a big issue though.

--
Attachment

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: pgAdmin 4 commit: PEP-8 fix.
Next
From: Khushboo Vashi
Date:
Subject: Re: RM 6427 - Newlines in text columns of resultset show an allegedly "empty" field