From 7aca328eb158a5dc903d218476326d023aed9c32 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 5 Jan 2017 16:48:27 +0100 Subject: [PATCH] waf: don't discard line endings when using file2string.py --- waftools/generators/sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waftools/generators/sources.py b/waftools/generators/sources.py index 5d3349c442..ef26a514db 100644 --- a/waftools/generators/sources.py +++ b/waftools/generators/sources.py @@ -31,7 +31,7 @@ def f2s(self): def fn(out): source = getattr(self, 'source', None) src = self.path.find_resource(source) - file2string(source, iter(src.read().splitlines()), out) + file2string(source, iter(src.read().splitlines(True)), out) execf(self, fn) @TaskGen.feature('ebml_header')