Fix/newline windows (#18)

* fix #17: use fmt.Println() after stats
* bump version
This commit is contained in:
T.v.Dein
2023-12-22 18:59:08 +01:00
committed by Thomas von Dein
parent 2a8f53ca98
commit f901af4f0c
2 changed files with 4 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ import (
) )
const ( const (
VERSION string = "0.1.0" VERSION string = "0.1.1"
Baseuri string = "https://www.kleinanzeigen.de" Baseuri string = "https://www.kleinanzeigen.de"
Listuri string = "/s-bestandsliste.html" Listuri string = "/s-bestandsliste.html"
Defaultdir string = "." Defaultdir string = "."

View File

@@ -131,10 +131,11 @@ func Main() int {
if conf.StatsCountAds == 1 { if conf.StatsCountAds == 1 {
adstr = "ad" 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) conf.StatsCountAds, adstr, conf.StatsCountImages, conf.Outdir)
fmt.Println()
} else { } else {
fmt.Printf("No ads found.") fmt.Println("No ads found.")
} }
return 0 return 0