mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #1113 from jpmens/file_pipe
Strip trailing white space from $FILE()/$PIPE()
This commit is contained in:
commit
ee5246fc36
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue