Strip trailing white space from $FILE()/$PIPE()

This commit is contained in:
Jan-Piet Mens 2012-09-27 23:47:34 +02:00
parent 69517832cd
commit 42620d2f19

View file

@ -277,7 +277,7 @@ def varReplaceFilesAndPipes(basedir, raw):
start, end = m.span()
done.append(raw[:start]) # Keep stuff leading up to token
done.append(replacement) # Append replacement value
done.append(replacement.rstrip()) # Append replacement value
raw = raw[end:] # Continue with remainder of string
return ''.join(done)