Browse Source

Merge pull request #1862 from dotcloud/dockerfile-multiline-space

Replace multiline with empty string not space
Daniel Mizyrycki 11 years ago
parent
commit
f368fd9f9f
1 changed files with 1 additions and 1 deletions
  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")