Merge "Split filepaths on ' ' in metadata generator" into main

This commit is contained in:
Aditya Choudhary 2023-11-21 16:09:23 +00:00 committed by Gerrit Code Review
commit c35ca4de22
3 changed files with 3 additions and 5 deletions

View file

@ -153,7 +153,7 @@ func main() {
}
inputFileData := strings.TrimRight(readFileToString(*inputFile), "\n")
filePaths := strings.Split(inputFileData, "\n")
filePaths := strings.Split(inputFileData, " ")
if len(filePaths) == 1 && filePaths[0] == "" {
writeNewlineToOutputFile(*outputFile)
return

View file

@ -1,2 +1 @@
file1.txt
file2.txt
file1.txt file2.txt

View file

@ -1,2 +1 @@
file3.txt
file4.txt
file3.txt file4.txt