fix FS#959 - Trimming two lines which already meet causes both to disappear after saving