layout: pass yaml.JSON encoding option to keep whitespaces as a value

pull/447/head
Demian 3 years ago
parent ec2cb655e7
commit 7981009da5

@ -74,7 +74,7 @@ func (lt *Layout) UnmarshalYAML(data []byte) error {
// 2. Extended reply or inline button
data, err := yaml.Marshal(v)
data, err := yaml.MarshalWithOptions(v, yaml.JSON())
if err != nil {
return err
}

Loading…
Cancel
Save