From d5f9c27edd204ef62c961e99d5c506c336e91e32 Mon Sep 17 00:00:00 2001 From: hakluke <13975395+hakluke@users.noreply.github.com> Date: Fri, 17 Jan 2020 17:18:44 +1000 Subject: [PATCH] fixed spacing issue and upped version number --- README.md | 2 +- pkg/collector/collector.go | 3 ++- pkg/config/config.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4dc39b3..fa075c3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # hakrawler [![Twitter](https://img.shields.io/badge/twitter-@hakluke_-blue.svg)](https://twitter.com/hakluke) -[![Version](https://img.shields.io/badge/version-beta2-blue.svg)](https://github.com/hakluke/hakrawler) +[![Version](https://img.shields.io/badge/version-beta3-blue.svg)](https://github.com/hakluke/hakrawler) [![License](https://img.shields.io/badge/license-MIT-_red.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html) ## What is it? diff --git a/pkg/collector/collector.go b/pkg/collector/collector.go index faf14be..e1b55db 100644 --- a/pkg/collector/collector.go +++ b/pkg/collector/collector.go @@ -354,7 +354,8 @@ func (c *Collector) colorPrint(tag aurora.Value, msg string, plain bool) { c.w.Write([]byte(fmt.Sprintln(msg))) } else { // append message to ansi code as bytes - bs := append([]byte(fmt.Sprint(tag)), []byte(fmt.Sprintln(msg))...) + bs := append([]byte(fmt.Sprint(tag)), " "...) + bs = append(bs, []byte(fmt.Sprintln(msg))...) c.w.Write(bs) } } diff --git a/pkg/config/config.go b/pkg/config/config.go index 4f6c4bf..a6389d0 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -28,7 +28,7 @@ type Config struct { func NewConfig() Config { var conf Config // default values - conf.Version = "beta 2" + conf.Version = "beta 3" conf.DisplayVersion = false conf.Url = "" conf.Depth = 1