Steps to reproduce
1) Make sure line numbers are displayed (Configure > Preferences > View > [x] Line numbers)
2) Create a new document
3) Right-click the document tab to edit the properties for the file. Put a check mark before "[x] Word wrap long lines" and "[x] Save with hard breaks" (you may also use "[x] Word break at column number: [20]" to limit the amount of nonsense you'll have to type later). Click OK to apply settings and return to the document.
4) Type some nonsense into the first line of the file making sure that the line is long enough to word wrap.
5) Insert a newline (hit <Enter>) after the first line and type "the end" (or something similar) at the second, last line of the file. Make sure there is no newline after "the end" - the "d" should be the last byte/character of the file.
6) Save the file. Notice how TextPad has put a newline after "the end".
Example
This is what the file looks like in TextPad before saving. Notice that the file has only two lines, but the first line is too long (because of the "Word break at column number 20" setting) and will be broken into two when saving (because of the "Save with hard breaks" setting). There is no newline character after "The end". The numbers at the left are supposed to illustrate the line numbers Textpad is displaying, not someting I have typed in.
Code: Select all
1 This is just some
nonsense text.
2 The end
Code: Select all
1 This is just some
2 nonsense text.
3 The end
4
Code: Select all
1 This is just some
more
2 nonsense text.
3 The end
4
Code: Select all
1 This is just some
2 more
3 nonsense text.
4 The end
5
6
Code: Select all
1 This is just some
2 more demonstrational
3 nonsense text.
4 The end
5
6
Code: Select all
1 This is just some
2 more demonstrational
3 nonsense text.
4 The end
5
6