Buffer.setImplicitTrailingNewline

void setImplicitTrailingNewline(bool implicitTrailingNewline)

Sets whether the buffer has an implicit trailing newline.

If an explicit trailing newline is present in a gtk.text_buffer.TextBuffer, gtk.text_view.TextView shows it as an empty line. This is generally not what the user expects.

If implicit_trailing_newline is true (the default value):

On the other hand, if implicit_trailing_newline is false, the file's content is not modified when loaded into the buffer, and the buffer's content is not modified when saved into a file.

Parameters

implicitTrailingNewlinethe new value.