Selaa lähdekoodia

Replace multiline with empty string not space

Michael Crosby 11 vuotta sitten
vanhempi
commit
1e723bc95a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      buildfile.go

+ 1 - 1
buildfile.go

@@ -481,7 +481,7 @@ func (b *buildFile) Build(context io.Reader) (string, error) {
 		return "", err
 	}
 	dockerfile := string(fileBytes)
-	dockerfile = lineContinuation.ReplaceAllString(dockerfile, " ")
+	dockerfile = lineContinuation.ReplaceAllString(dockerfile, "")
 	stepN := 0
 	for _, line := range strings.Split(dockerfile, "\n") {
 		line = strings.Trim(strings.Replace(line, "\t", " ", -1), " \t\r\n")