Joining Lines Bug
Posted: Sat Aug 23, 2003 12:18 pm
I've noticed a minor problem whereby I keep getting newlines added to the end of text files after I've been editing them.
I've narrowed down the problem and here's how you should be able to reproduce it:
I've set lines to wrap at 76 characters, and "save with hard breaks" is set. With the following two lines of text in my document:
If I delete the linebreak after the word "please", then hit Enter after the word "please" to put it back, then select both lines and hit Ctrl+J to join lines, then save the file, an extra linebreak is added to the end of the text file, even though these lines appear well before the end.
This has happened in a number of different documents, and after making several changes to them over time I always notice there are extra line breaks dangling at the end of the file. It's not much of a problem to delete them but it seems odd to me how they got there. I've just upgrade to version 4.7 and the problem still exists.
I've narrowed down the problem and here's how you should be able to reproduce it:
I've set lines to wrap at 76 characters, and "save with hard breaks" is set. With the following two lines of text in my document:
Code: Select all
If you have any questions (and, ideally, answers) you can contribute, please
reply to the newsgroup or email someone@somewhere.com.
This has happened in a number of different documents, and after making several changes to them over time I always notice there are extra line breaks dangling at the end of the file. It's not much of a problem to delete them but it seems odd to me how they got there. I've just upgrade to version 4.7 and the problem still exists.