From f901af4f0c99f42b575a1e40a628d408d6fda908 Mon Sep 17 00:00:00 2001 From: "T.v.Dein" Date: Fri, 22 Dec 2023 18:59:08 +0100 Subject: [PATCH] Fix/newline windows (#18) * fix #17: use fmt.Println() after stats * bump version --- config.go | 2 +- main.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config.go b/config.go index 6d05ef8..7adbdf9 100644 --- a/config.go +++ b/config.go @@ -32,7 +32,7 @@ import ( ) const ( - VERSION string = "0.1.0" + VERSION string = "0.1.1" Baseuri string = "https://www.kleinanzeigen.de" Listuri string = "/s-bestandsliste.html" Defaultdir string = "." diff --git a/main.go b/main.go index fdefc9a..638b520 100644 --- a/main.go +++ b/main.go @@ -131,10 +131,11 @@ func Main() int { if conf.StatsCountAds == 1 { adstr = "ad" } - fmt.Printf("Successfully downloaded %d %s with %d images to %s.\n", + fmt.Printf("Successfully downloaded %d %s with %d images to %s.", conf.StatsCountAds, adstr, conf.StatsCountImages, conf.Outdir) + fmt.Println() } else { - fmt.Printf("No ads found.") + fmt.Println("No ads found.") } return 0