_Document : port `insertNewLine` and fix `_split`