ffes / nppsnippets

Code Snippets plugin for Notepad++
https://www.fesevur.com/nppsnippets
GNU General Public License v2.0
71 stars 12 forks source link

Snippet code with no break line #27

Closed gwarah closed 4 years ago

gwarah commented 4 years ago
  1. Open a new file (unix format). Create and select this code
if [ $a -eq 0 ]; then
    echo "a = 0"
else
    echo "a != 0"
fi 
  1. Try to add a new snippet from the selected code. In my environment, it results on this non-formatted code:

if [ $a -eq 0 ]; then echo "a = 0" else echo "a != 0" fi

My environment:

OS: windows 7 npp: 7.8.2 Snippets vs: 1.5.0

ffes commented 4 years ago

Great find.

The line ending of the string from the selection or clipboard is not converted to CRLF, what the Windows dialog needs. I'm working on a fix right now.