Commit ee5246fc by Michael DeHaan

Merge pull request #1113 from jpmens/file_pipe

Strip trailing white space from $FILE()/$PIPE()
parents 151085c7 42620d2f
...@@ -317,7 +317,7 @@ def varReplaceFilesAndPipes(basedir, raw): ...@@ -317,7 +317,7 @@ def varReplaceFilesAndPipes(basedir, raw):
start, end = m.span() start, end = m.span()
done.append(raw[:start]) # Keep stuff leading up to token 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 raw = raw[end:] # Continue with remainder of string
return ''.join(done) return ''.join(done)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment