mirror of https://github.com/docker/docs.git
Replace multiline with empty string not space
This commit is contained in:
parent
d5480fb78d
commit
1e723bc95a
|
@ -481,7 +481,7 @@ func (b *buildFile) Build(context io.Reader) (string, error) {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
dockerfile := string(fileBytes)
|
dockerfile := string(fileBytes)
|
||||||
dockerfile = lineContinuation.ReplaceAllString(dockerfile, " ")
|
dockerfile = lineContinuation.ReplaceAllString(dockerfile, "")
|
||||||
stepN := 0
|
stepN := 0
|
||||||
for _, line := range strings.Split(dockerfile, "\n") {
|
for _, line := range strings.Split(dockerfile, "\n") {
|
||||||
line = strings.Trim(strings.Replace(line, "\t", " ", -1), " \t\r\n")
|
line = strings.Trim(strings.Replace(line, "\t", " ", -1), " \t\r\n")
|
||||||
|
|
Loading…
Reference in New Issue