mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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 <tom.zanussi@intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
8a51a8afe8
commit
bc6b04fe22
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user