Remove final newline from new snippet