2/19/2023 0 Comments Vba copying text clipboardI would think that the default Paste action should be to drop standalone "CR" entries when "EOL Conversion" is set to "Windows" and to allow "Paste Special" to include them and/or convert them. I think that for the normal user, copying this (see image) to get the result above in Notepad++ appears to be a failure in the copy/paste operation.įYI, when I open the file in Microsoft Word, it displays the same as it does in Windows Notepad.Ĭan't there be a setting somehow to control this? Perhaps in a "Paste Special" action. (This is the file open in notepad & I copy this text). I believe that there should be a way to keep these two visually the same. Either Windows copies it incorrectly or Microsoft is generating it incorrectly.īut to me it seems that part of the problem is that Scintilla is converting the bad line endings instead of dropping them (the additional CR). NET message box only has normal line endings (CR LF). Please note that I did not create the content with the mixed line endings. The Windows MessageBox function used to display the original message box is tolerant about invalid line breaks thus you don't see them. So it's not a problem of Notepad++, it's a problem of the software generating the message box content since it fills in line breaks in an invalid format. Since Notepad++ is able to interprete both line break formats it does simply what it is expected to do - it generates line breaks. CR is the line break symbol in Macintosh format and CR+LF is the line break symbol in Windows format. In the second picture you can see that all lines of the message text are terminated with a CR (carriage return) sign followed by a CR+LF (carriage return + line feed). The middle part (between the two minus sign framed blocks) is the content of the message box and as such has been generated by the software. I guess the content of your file was produced by pressing CTRL+C when a message box displayed by a particular software was the active window. When you configure Notepad++ to show also control characters
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |