From c78ecb1120ceecf93df9ee8c895e84f95cc0ad64 Mon Sep 17 00:00:00 2001 From: aoife cassidy Date: Sun, 19 Jan 2025 15:29:07 +0200 Subject: [PATCH] don't write pronouns in birthday --- app/settings.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/settings.go b/app/settings.go index 2df2773..f8b7a42 100644 --- a/app/settings.go +++ b/app/settings.go @@ -36,10 +36,10 @@ func (view *Settings) Event(state *ui.State, event vaxis.Event) (processed bool) // XXX: this assumes nothing will break if pronouns != "" { - os.WriteFile(".pronouns", []byte(pronouns), 0644) + os.WriteFile(".pronouns", []byte(pronouns+"\n"), 0644) } if birthday != "" { - os.WriteFile(".birthday", []byte(pronouns), 0644) + os.WriteFile(".birthday", []byte(birthday+"\n"), 0644) } if timezone != "" { f, _ := os.OpenFile(".bashrc", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)