Formating in Notepad++ after pasting text from a web page.
-
I’m trying to paste data from a webpage that is formatted like this (short version):
CABI1,2012-10-09,2012-10-10,APR,JUL,7313.54,9262.26,10589.9,11944.93,14861.22
CABI1,2012-10-04,2012-10-05,APR,JUL,6562.06,8376.43,9895.64,11120.05,14006.33When I past it into Notepad++ it puts it all in one line. Since the length is almost 20,000 characters, that’s a problem. Using word wrap doesn’t solve the problem because it’s still formatted incorrectly. This wasn’t a problem until we upgraded to the latest version of Notepad++. What setting do I need to changes so a paste into Notepad++ is the same format as the copy?
-
It sounds like a line-ending issue… My initial guess would have been it’s line-ending style (linux-vs-windows). Turn on View > Show Symbol > Show End of Line… assuming that you’ve got just
LF
instead ofCRLF
, but your Notepad++ document is set to expect windows line endings. However, in all my tests, I couldn’t replicate those results – Notepad++ will start a new line, whichever line ending styles are selected for the document.It would be really helpful if you could point us to a publically-facing website where we can copy from and get the same results – and tell us as much as you can about your Notepad++ version (? > Debug Info > Copy debug info into clipboard, then paste here) – preferably for both the old/working version and the new/not-working version of Notepad++.
-
@Patrick-Maher said:
This wasn’t a problem until we upgraded to the latest version of Notepad++
It would also help if you could mention:
- the version you were using when it worked (but this may be difficult to remember)
- what “the latest version” is (especially so FUTURE readers will know what you are meaning!)
The second one is easy: Go to the
?
menu, chooseDebug Info...
, copy to clipboard, paste results here.Edit: ah, Peter already hit you over the head with my second point, actually both my points
-
Thanks for your reply. It looks like what I need is similar to the function in MS Word that is “Keep Source Formatting”.
Here is the site I am trying to copy and paste from:
https://www.nwrfc.noaa.gov/water_supply/ws_text.cgi?id=CABI1&wy=2013&per=APR-JUL
-
@Patrick-Maher said:
https://www.nwrfc.noaa.gov/water_supply/ws_text.cgi?id=CABI1&wy=2013&per=APR-JUL
When I past it into Notepad++ it puts it all in one line
When I copy that site data and paste into Notepad++, I get multiple lines. Looks nice.
You have ignored two requests for version information about your Notepad++.
-
@Alan-Kilborn said:
I get multiple lines
So do I.
You have ignored two requests for version information about your Notepad++.
Indeed.
It might also come into play what browser that @Patrick-Maher is using… maybe his browser isn’t putting the newlines into the clipboard. I’m using
Chrome Version 76.0.3809.100 (Official Build) (64-bit)
.As another test, what happens if it’s pasted into some other application, like MS notepad.exe? If you get a single line when you paste into Notepad++, but get multiple lines when you paste into notepad.exe, then it’s likely a bug on the Notepad++/Scintilla end; if you get single lines no matter where you paste it, it’s likely a bug in how the browser is populating the clipboard.