Comments (9)
Now try the legacy command prompt
OK, but I was merely "playing along" anyway...
Do we really care that Notepad++ is copying its exact data to the clipboard?
Is there some sort of requirement that data copied to the clipboard is provided with Windows' CRLF line-endings?
from notepad-plus-plus.
Can't replicate under 8.6.2.
Multiple lines copied from Notepad++ paste just fine into a cmd window:
leads to this in the cmd window after attempting to paste:
from notepad-plus-plus.
This happens if End-Of-Line is not Windows CRLF:
from notepad-plus-plus.
This happens if End-Of-Line is not Windows CRLF
For me, I get the same Warning prompt as I got before, even with LF line endings, or CR line endings in my Notepad++ tab.
from notepad-plus-plus.
For me, I get the same Warning prompt as I got before, even with LF line endings, or CR line endings in my Notepad++ tab.
Now try the legacy command prompt that @AndiKiissel is using, not the Windows Terminal app
- ⊞ (Windows key) + R
- Run
conhost.exe
from notepad-plus-plus.
I only showed how it can happen, I don't think it needs to be changed.
from notepad-plus-plus.
I ran a test script in a cmd window, trying it with different line endings. When I pasted from other applications, line endings were present. But pasting from Notepad++, there were none.
But, apparently is an issue with the older version of Notepad++ that my employer has deployed to our PCs.
from notepad-plus-plus.
It would still be a "problem" with any version of Notepad++.
But the question remains: If it is a typical Copy to clipboard, and not some sort of Copy Special, should LF-only (or CR-only) line endings be converted to CR+LF, at the time of the copy?
This is not a problem when pasting into Notepad++, because Scintilla paste functions automatically convert incoming line-endings to be appropriate for the current tab's line-ending format.
So the argument is: Notepad++ is liberal in what it accepts (converting as necessary) but not so strict in what it sends -- should it be equally-friendly BOTH ways? Maybe I'm stating it poorly, but see Postel's Law.
from notepad-plus-plus.
After reading recent alankilborn's post, I did some more experiments on my personal PC (after installing Notepad++ 8.6.2).
Turns out the problem is that cmd is not just ignoring the non-CRLF line endings, but discarding them.
Eclipse, FireFox and LibreOffice accept pastes with LF line endings. I don't know about other applications.
So, other than possibly adding a "special copy" feature, this turns out to not be a Notepad++ issue.
from notepad-plus-plus.
Related Issues (20)
- [HiDPI] Dark mode scrollbar positions in edit/listbox controls in hiDPI wrong HOT 4
- NPP incorrect display unicode character with circle or gap HOT 3
- removing recent file from the Notepadd++ Icon when right-clicking it HOT 14
- Icons are tiny HOT 1
- Dark theme fonts not displaying properly HOT 1
- Kedit - Zone editing HOT 7
- Regex \U \u \L \l \ E \ e HOT 3
- autocomplete preferences reset HOT 6
- Binary files are not displayed properly after tab change HOT 14
- Update also for major versions - feature request HOT 12
- Notepad++ and NAS. HOT 12
- User Defined Language Operator Styling
- The function "PathFileExists" causes confusion in the judgment of directories and files. HOT 9
- Release Key Expires 2024-03-11 HOT 4
- Update Notepad++ gives an XML Excepion HOT 1
- Small code optimization HOT 2
- [Code] GCC warnings
- borad vs board typo in source code HOT 2
- How to download test build? HOT 2
- A certain multibyte utf-character confuses function list
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notepad-plus-plus.