mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Revert "tpl: Update Jsonify to return pretty-print output"
This reverts commit 5a52cd5f92
.
Closes #5394
This commit is contained in:
@@ -50,9 +50,9 @@ func (ns *Namespace) Base64Encode(content interface{}) (string, error) {
|
||||
return base64.StdEncoding.EncodeToString([]byte(conv)), nil
|
||||
}
|
||||
|
||||
// Jsonify encodes a given object to JSON, returning pretty printed output.
|
||||
// Jsonify encodes a given object to JSON.
|
||||
func (ns *Namespace) Jsonify(v interface{}) (template.HTML, error) {
|
||||
b, err := json.MarshalIndent(v, "", " ")
|
||||
b, err := json.Marshal(v)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
Reference in New Issue
Block a user