Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable universal newlines for writer (#140)
Problems noticed on Windows where preformatted blocks (e.g. source & literal blocks) have an extra space between each line. In fact, *all* lines have this extra space, but it is only noticeable on preformatted blocks where the extra line spacing is visible. By default, Python 3 has universal newlines mode enabled, which makes outputting files with various line endings simpler. However, AsciiDoc is already handling this internally, so we ended up with extra lines being inserted. In the actual output file, every line on Windows ended with "/r/r/n". This was not a problem on systems that used UNIX line endings. Solve this by disabling universal newlines when outputting the file.
- Loading branch information