From 20003eda48cc8e39e5a9cff0717da29e559170cc Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Wed, 20 May 2020 23:07:56 +0200 Subject: [PATCH] Indent wiki json pages --- file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.go b/file.go index 179d9a5..d3213c4 100644 --- a/file.go +++ b/file.go @@ -67,7 +67,7 @@ func (fp *FilePages) Save(p string, page Page, summary, author string) error { return err } defer f.Close() - if page.Content[0] == '{' { + if page.Content[0] == '{' || page.Content[0] == '[' { var buf bytes.Buffer err = json.Indent(&buf, []byte(page.Content), "", " ") if err != nil {