From bc6b04fe222001250b7f730f37153faa71542525 Mon Sep 17 00:00:00 2001 From: Tom Zanussi Date: Mon, 6 Aug 2012 00:56:55 -0500 Subject: yocto-bsp: use rstrip() for assignment lines strip() isn't necessary and causes unintended formatting changes in the output; rstrip() remove the trailing newlines as intended while leaving indenting whitespace intact. Signed-off-by: Tom Zanussi --- scripts/lib/bsp/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py index 756b8828e2..af90e91d18 100644 --- a/scripts/lib/bsp/engine.py +++ b/scripts/lib/bsp/engine.py @@ -668,7 +668,7 @@ class SubstrateBase(object): """ Expand all tags in a line. """ - expanded_line = AssignmentLine(line.strip()) + expanded_line = AssignmentLine(line.rstrip()) while start != -1: end = line.find(CLOSE_TAG, start) -- cgit v1.2.3-54-g00ecf