|
@@ -3,6 +3,7 @@ package client
|
|
import (
|
|
import (
|
|
"encoding/json"
|
|
"encoding/json"
|
|
"fmt"
|
|
"fmt"
|
|
|
|
+ "strings"
|
|
"text/tabwriter"
|
|
"text/tabwriter"
|
|
"time"
|
|
"time"
|
|
|
|
|
|
@@ -57,9 +58,9 @@ func (cli *DockerCli) CmdHistory(args ...string) error {
|
|
}
|
|
}
|
|
|
|
|
|
if *noTrunc {
|
|
if *noTrunc {
|
|
- fmt.Fprintf(w, "%s\t", entry.CreatedBy)
|
|
|
|
|
|
+ fmt.Fprintf(w, "%s\t", strings.Replace(entry.CreatedBy, "\t", " ", -1))
|
|
} else {
|
|
} else {
|
|
- fmt.Fprintf(w, "%s\t", stringutils.Truncate(entry.CreatedBy, 45))
|
|
|
|
|
|
+ fmt.Fprintf(w, "%s\t", stringutils.Truncate(strings.Replace(entry.CreatedBy, "\t", " ", -1), 45))
|
|
}
|
|
}
|
|
|
|
|
|
if *human {
|
|
if *human {
|