diff options
author | Matthew Peveler <matt.peveler@gmail.com> | 2020-10-03 15:40:56 +0000 |
---|---|---|
committer | Matthew Peveler <matt.peveler@gmail.com> | 2020-10-03 15:46:18 +0000 |
commit | f7e6a666125ab4f20914d003de60be666da868b8 (patch) | |
tree | 308ae5382d9816ffee9304c5345870303dc8ed29 | |
parent | 4f945d30674c22c2345d933a562a0cbcb18c65fd (diff) | |
download | asciidoc-py3-test_newlines.tar.gz |
do not ignore newlines for testingtest_newlines
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rwxr-xr-x | tests/testasciidoc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testasciidoc.py b/tests/testasciidoc.py index 4882f80..3c17aac 100755 --- a/tests/testasciidoc.py +++ b/tests/testasciidoc.py @@ -173,7 +173,7 @@ class AsciiDocTest(object): with open(self.backend_filename(backend), encoding='utf-8') as open_file: result = open_file.readlines() # Strip line terminators. - result = [s.rstrip() for s in result] + result = [s for s in result] return result def generate_expected(self, backend): @@ -186,7 +186,7 @@ class AsciiDocTest(object): infile = self.source outfile = io.StringIO() asciidoc.execute(infile, outfile, backend) - return outfile.getvalue().splitlines() + return outfile.getvalue().splitlines(keepends=True) def update_expected(self, backend): """ |