keewis / blackdoc

run black on documentation code snippets
https://blackdoc.readthedocs.io
MIT License
47 stars 4 forks source link

keep newlines before eol in rst files #73

Closed keewis closed 3 years ago

keewis commented 3 years ago

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.