postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.84k stars 840 forks source link

new-line character included when copying a single line and pasting into the Collection/Environment variables #8955

Closed wiltonlazary closed 4 years ago

wiltonlazary commented 4 years ago

Issue Editing collection or environment variables. When triple-click to select all it's seems to include the newline character where it should not.

Platform/Version

Screenshots/Videos postman-line-copy_paste

DannyDainton commented 4 years ago

Hey @wiltonlazary

If this is an issue that you're reporting, could you also provide some environment (App version and OS) details please.

We will also require the steps to reproduce the issue and some screenshots of what you're seeing to help bring the information to life.

wiltonlazary commented 4 years ago

Linux Ubuntu 20.04,

When triple click to select all it's seems to include the newline character where it should not.

DannyDainton commented 4 years ago

Which app version are you seeing this issue on?

Can you share an image of what it looks like please?

wiltonlazary commented 4 years ago

Which app version are you seeing this issue on?

Can you share an image of what it looks like please?

I put the references on the first comment.

Thanks.

DannyDainton commented 4 years ago

I see that you're copying and pasting the text from the description tab which includes a markdown editor. Highlighting when you have text over multiple lines is showing an extra space at the end of the line.

The behaviour you're seeing with the variables editor is expected and it's warning you that new characters are present.

Are you seeing this same behaviour when copying text from a non-markdown editor outside of the application?

wiltonlazary commented 4 years ago

I see that you're copying and pasting the text from the description tab which includes a markdown editor. Highlighting when you have text over multiple lines is showing an extra space at the end of the line.

The behaviour you're seeing with the variables editor is expected and it's warning you that new characters are present.

Are you seeing this same behaviour when copying text from a non-markdown editor outside of the application?

I tested others editors and no one copy the new line character with the triple click.

DannyDainton commented 4 years ago

Just using vscode and a .md file, if I triple-click on a single line the text is highlighted and the cursor moves to the end of the line.

Screenshot 2020-08-21 at 19 37 10

When there is a second line and you triple-click, the cursor moves to the start of the new line but also includes an additional space at the end of the first line.

Screenshot 2020-08-21 at 19 36 46
wiltonlazary commented 4 years ago

You are right, i tested it and some others editors, some put the new line and some don't.

wiltonlazary commented 4 years ago

gedit, leafpad: don't. kate, vscode, intelij, eclipse: yes

For sure it was my bias on the linux editor. I will close this, thanks for the attention.