Gedit doesn't check whether a file already ends with the newline character. It just silently adds an extra newline character and even doesn't the last empty line (like other text editors and IDE's do).
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/379367 Title: Gedit adding a newline at the end of file should be configurable To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/379367/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs