Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lyYWB-0007lR-0s for pgadmin-hackers@arkaria.postgresql.org; Wed, 30 Jun 2021 11:36:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lyYW9-0005s8-Uu for pgadmin-hackers@arkaria.postgresql.org; Wed, 30 Jun 2021 11:36:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lyYW9-0005s0-Ka for pgadmin-hackers@lists.postgresql.org; Wed, 30 Jun 2021 11:36:33 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lyYW5-0002A3-UU for pgadmin-hackers@postgresql.org; Wed, 30 Jun 2021 11:36:32 +0000 Received: by mail-lj1-x235.google.com with SMTP id a6so2856148ljq.3 for ; Wed, 30 Jun 2021 04:36:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H6SbpNlQwj5QDtXf8GuZIUs7bFo2TWGFs9fp30dvI5c=; b=mSEV6VNAINkcZFF78XpyZaIOVx6Kjq5h7sLX5XknU7w5VDP1kll4MdZBEBwb8nKHmh e30ZkNxagO2YljZY8fLiomnjlwAuM2EG1XWqlCraeyEAOX3GsqIyQw4JlHGt5wTQPKwA wBLJt5up0aig741hbTWJqqLz/cunG76WmnfwAnuBMzO1Ph6rdMIdtQk8JaR2rXPhHyye apsYiY5wvPsCvYW7Fvi2KyGsPhzZzMUwZ2fxQxXQkn8SuFYolhMIfbe7ttOsgUT8Nzyr 6E2vk27RaAg4Y9v5AAdDJ9sVorZDEueBN6d1QzRrnfo3rnTo0ytRgT4pTfmbVMr9RiBz M7Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H6SbpNlQwj5QDtXf8GuZIUs7bFo2TWGFs9fp30dvI5c=; b=OVtJAC2sqnz6k9VrVakseuBVSk8/p1RXNtAwGcuCQKcQFG7zQuGPs+sCxegTsOe2f1 TsmtRJj3uZRD0mfxbvDcqryXObpyqzS9ACbZo/G4JpihltL/24poEknqMPaFUN5bWwsx 3jRs/mZJeZ9YIGFTVE9xHacyzCDeJokfDvVh/olj8HjdF3dKL4fC1P6AU4DPURUTCr3b VUbYnHs4rR6WvWOd7XoNMWdjdoc46+CpIIWrbQKSAva5Fpe+eYkdqg2pblx4LTgOLIWh m6ETGJoM0NqgrX8RXAm9WpeIP4q/2d9bfq3Y7ALDMlkUlZn/oM7N+tvIwpsctPgB72g3 Y7vA== X-Gm-Message-State: AOAM530wez31smYOFRx8qINbChvVJbDN8WyeLYJHeWgK5chkBNRIyMBi v6mE5U1sfRIitJO0KXW6gI7jnTGIOAqKLvr0nLkaO+YrBO2UOkE+ew5CfnkX6weY6XYdTNhclm4 kJlQ8JwXT13zgL4W1Mvis8aprb/qFISRe7tR8y6CBBCnDSp0cAoAR4FsFWZ4XiN0yCY3mHOitZa +PoskUm+ZGprv82A8DpzYpZozLI8wJxLwnL+ivB0AMqXAmI4kVprZyKjAbUrhsHL4= X-Google-Smtp-Source: ABdhPJx7CutIUq3rmMiQ3u5yggwxOGGgVmiPMcKwm0294+RLmV3u3Q7oTnVgUTUkZu8WfuhwgLFG3BrU62DDtH9cjZQ= X-Received: by 2002:a05:651c:546:: with SMTP id q6mr7449015ljp.73.1625052987976; Wed, 30 Jun 2021 04:36:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Khushboo Vashi Date: Wed, 30 Jun 2021 17:06:17 +0530 Message-ID: Subject: Re: RM 6427 - Newlines in text columns of resultset show an allegedly "empty" field To: Dave Page Cc: pgadmin-hackers , Nikhil Mohite Content-Type: multipart/alternative; boundary="000000000000170d0205c5fa2259" X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000170d0205c5fa2259 Content-Type: text/plain; charset="UTF-8" Hi Dave, On Wed, Jun 30, 2021 at 3:35 PM Dave Page wrote: > 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 patch looks good to me. Do we need to specify somewhere what is [...] ? 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. > > -- > Dave Page > Blog: https://pgsnake.blogspot.com > Twitter: @pgsnake > > EDB: https://www.enterprisedb.com > > --000000000000170d0205c5fa2259 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Dave,

On Wed, Jun 30, 2021 at 3:35 PM Dave Page <= ;dpage@pgadmin.org> wrote:
<= /div>
Her= e'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 patch lo= oks good to me.=C2=A0
Do we need to specify somewhere what is [..= .] ?

=
The only downside I can see to this is tha= t 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-trivial= ly). I don't think that's a big issue though.

--
--000000000000170d0205c5fa2259--