Re: public schema not prefixed / copy + paste adds newline
От | Erwin Brandstetter |
---|---|
Тема | Re: public schema not prefixed / copy + paste adds newline |
Дата | |
Msg-id | 1185118241.729973.164690@57g2000hsv.googlegroups.com обсуждение исходный текст |
Ответ на | Re: public schema not prefixed / copy + paste adds newline (Erwin Brandstetter <brsaweda@gmail.com>) |
Ответы |
Re: public schema not prefixed / copy + paste adds
newline
|
Список | pgadmin-support |
Sorry, I was in the process of editing my post, when the groups.google.com decided to interpret "<tab><tab> -" as my will to send it. So the posting above is quite unfinished. �$%&/( interface! : ( Anyway, here is what my finished posting would look like: On Jul 19, 4:53 pm, dp...@postgresql.org (Dave Page) wrote: > Kieran McCusker wrote: (...) > > Copy and paste from edit grid adds a newline > > =========================== > > > If you double click on a text field in the grid and do ctrl-c then paste > > the result into another text field you get a newline on the end. My > > users do this all the time and I am constantly writing triggers to > > prevent this from happening. > > Unfortunately this happens in the cases when the underlying control as > supplied by the OS handles the paste. I can reproduce it in Windows XP, > but it's a Microsoft control that's adding the \n :-( We have been discussing this before. I think there is a misunderstanding involved. The newline is not appended at paste time, it is appended in the text field in the edit grid BEFORE copying. You can de-select the appended non-printing character in the text field in the edit grid before copying, which results in the desired behaviour. You can even exclusively select the culprit character and .. paste it in a text field in the edit grid. Results in a newline. .. cannot paste it in fields of other type in the edit grid (like timestamp). But then again, you cannot enter \n in a timestamp field at all. (You can however enter \r, which results in gibberish character.) .. cannot paste it in the scratch pad or the SQL query dialogue. Results in nothing. .. can paste it in other applications like OOo. Results in a line break (\r\n). If you copy that one back to a text field in the edit grid you get two new lines. I am not sure which character is appended to the text in text fields in the edit grid, but it should not be there. I suspect confusion in the handling of \n, \r and \r\n. Regards Erwin
В списке pgadmin-support по дате отправления: