1
0
mirror of https://github.com/docker/cli.git synced 2026-01-15 07:40:57 +03:00

Replace multiline with empty string not space

Upstream-commit: 1e723bc95a61fb6c46af82557c128d1e95a33a99
Component: engine
This commit is contained in:
Michael Crosby
2013-09-11 23:43:55 +00:00
parent 2bbd215a6a
commit ec20b18bca

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