mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: fix os.exec().output usages, that may rely on trimmed lines
This commit is contained in:
@@ -169,7 +169,7 @@ pub fn color_compare_files(diff_cmd, file1, file2 string) string {
|
||||
x := os.exec(full_cmd) or {
|
||||
return 'comparison command: `${full_cmd}` failed'
|
||||
}
|
||||
return x.output
|
||||
return x.output.trim_right('\r\n')
|
||||
}
|
||||
return ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user