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

Replace multiline with empty string not space
This commit is contained in:
Daniel Mizyrycki 2013-09-13 08:52:57 -07:00
commit f368fd9f9f

View file

@ -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")