From 644c9ed228a79fc3fd8751c127c2b295c59751ea Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Tue, 13 Aug 2024 10:41:40 +0800 Subject: [PATCH] feat: marshal indented --- server/core/integration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/core/integration.go b/server/core/integration.go index 457092b..ffffedf 100644 --- a/server/core/integration.go +++ b/server/core/integration.go @@ -60,7 +60,7 @@ func (c *Client) writeNfoFile(historyId int) error { }, }, } - data, err := xml.Marshal(&show) + data, err := xml.MarshalIndent(&show, " ", " ") if err != nil { return errors.Wrap(err, "xml marshal") } @@ -95,7 +95,7 @@ func (c *Client) writeNfoFile(historyId int) error { }, }, } - data, err := xml.Marshal(&nfoData) + data, err := xml.MarshalIndent(&nfoData, " ", " ") if err != nil { return errors.Wrap(err, "xml marshal") }