command/fix: properly replace the escaped </>
This commit is contained in:
parent
6f86fd9849
commit
e5773e1b66
@ -73,7 +73,10 @@ func (c Command) Run(env packer.Environment, args []string) int {
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
env.Ui().Say(indented.String())
|
result := indented.String()
|
||||||
|
result = strings.Replace(result, `\u003c`, "<", -1)
|
||||||
|
result = strings.Replace(result, `\u003e`, ">", -1)
|
||||||
|
env.Ui().Say(result)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user