~arcade/hcwiki-devel

Add reset sequence after the error in parseGMI v1 APPLIED

Scott Little: 1
 Add reset sequence after the error in parseGMI

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~arcade/hcwiki-devel/patches/25259/mbox | git am -3
Learn more about email & git

[PATCH] Add reset sequence after the error in parseGMI Export this patch

---
 hcwiki.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hcwiki.go b/hcwiki.go
index a4ab5a8..8b0b1e8 100644
--- a/hcwiki.go
+++ b/hcwiki.go
@@ -57,7 +57,7 @@ func parseGmi(filename string, conf config) map[string]interface{} {
	matter.Handle("---", front.YAMLHandler)
	fmatter, body, err := matter.Parse(file)
	if err != nil {
		fmt.Fprintln(os.Stderr, chalk.Red, "Uh oh looks like there's no front matter.")
		fmt.Fprintln(os.Stderr, chalk.Red, "Uh oh looks like there's no front matter.", chalk.ResetColor)
		panic(err)
	}

-- 
2.33.0