Copy Paste from NPP to Verse loses new lines between paragraphs
-
I use an online browser based email system for work called Verse. It used to be an IBM product but was sold off I think.
I author my emails in NPP and then copy and paste the text to Verse.
My emails have 2 return carriages between paragraphs (giving one empty line between paragraphs).
When I copy and paste to Verse the text appears with only one return carriage btween the paragraphs so then the paragraphs are all jammed together. i.e. 1 carriage return seems to go missing during copy/paste.
Has any body else experienced this issue copying and pasting double spaced paragraphs from NPP to any other tool or environment?
And if so is there a setting in NPP (or the other tool) that will prevent the issue?
I seem to remember from my programming days that unix/windows systems treated new lines differently so maybe it is connected to that issue)
My current workaround is to add triple return carriages so the paragraphs have 2 empty lines in NPP before copying and pasting to Verse, after pasting to Verse they appear with 1 empty line (2 return carriages)
This is not an ideal workaround as I often need to keep the text file coipy fpor reference and so it has to have all the triple return carriages changed back to double return carriage.
-
@mojo-rising said in Copy Paste from NPP to Verse loses new lines between paragraphs:
Has any body else experienced this issue copying and pasting double spaced paragraphs from NPP to any other tool or environment?
And if so is there a setting in NPP (or the other tool) that will prevent the issue?Notepad++ copies the newline sequence that is actually present in the text document. If the recipient tool doesn’t handle that correctly, that’s on the recipient tool – and we are not the right place for asking for how to change settings in your recpient tool. The only workaround is , as you’ve found, to edit the data in Notepad++ so that it becomes what the recipient wants.
This is not an ideal workaround as I often need to keep the text file coipy fpor reference and so it has to have all the triple return carriages changed back to double return carriage.
You could record two macros: one where you search/replace and convert 2 newlines into 3, and one where you search/replace and convert 3 newlines into 2; this would at least allow you to do the conversion each way with a single macro keystroke in each direction, rather than doing the search/replace dialog manually each time. (Or really, record the macro of “convert-2-to-3, then copy to clipboard, then convert-3-to-2” and assign it to one key, to do the whole sequence.)
I seem to remember from my programming days that unix/windows systems treated new lines differently so maybe it is connected to that issue)
Notepad++ can handle any of the three major EOL sequences: Windows (CR LF), Unix/Linux/Modern-Mac (LF), or ancient Mac (CR). You can change that setting for your active file by right clicking on the statusbar where it says “Windows (CR LF)” or whichever is active, or via the Edit > EOL Conversion menu. So if you want to experiment with that, change that setting, save the file, then re-copy and see if it pastes the way you want it to.
But really, the onus is on your recipient tool to accept the input correctly.
-
Thanks for the detailed reply Peter
I will give those ideas a try
-
Macro works a treat. Champion.
If anyone googles this then you need to record a macro that does a search and replace using the Regular Expression
Search
\r\n\r\n
Replace
\r\n\r\n\r\n
Type your email and then save it.
Then run your macro and copy and paste your modified text.
Then close without saving so you get the unmodified version in your saved text file.