The rst detection function currently drops newline characters if the iterator raises StopIteration (i.e. there are newlines before the end of the file (EOF)). In order to properly test this, the classification test has been extended to also check the rst and ipython formats.
[x] Tests added
[x] Passes isort . && black . && flake8
[x] User visible changes (including notable bug fixes) are documented in changelog.rst
The
rst
detection function currently drops newline characters if the iterator raisesStopIteration
(i.e. there are newlines before the end of the file (EOF)). In order to properly test this, the classification test has been extended to also check therst
andipython
formats.isort . && black . && flake8
changelog.rst