_Document : bug fix in `_detectNewLine`