Skip to content

Commit 2542fbf

Browse files
1acejpakkane
authored andcommitted
vcstagger: only strip the ending newlines, not all whitespaces before and after
1 parent 684474e commit 2542fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/scripts/vcstagger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
def config_vcs_tag(infile: str, outfile: str, fallback: str, source_dir: str, replace_string: str, regex_selector: str, cmd: T.List[str]) -> None:
1010
try:
1111
output = subprocess.check_output(cmd, cwd=source_dir)
12-
new_string = re.search(regex_selector, output.decode()).group(1).strip()
12+
new_string = re.search(regex_selector, output.decode()).group(1).rstrip('\r\n')
1313
except Exception:
1414
new_string = fallback
1515

0 commit comments

Comments
 (0)