diff --git a/models/packages.go b/models/packages.go index 587c9f52..473d52bd 100644 --- a/models/packages.go +++ b/models/packages.go @@ -117,16 +117,12 @@ func (p Package) FormatVersionFromTo(notFixedYet bool) string { if notFixedYet { to = "Not Fixed Yet" } - return fmt.Sprintf("%s-%s - %s", p.Name, p.FormatVer(), to) + return fmt.Sprintf("%s-%s -> %s", p.Name, p.FormatVer(), to) } // FormatChangelog formats the changelog func (p Package) FormatChangelog() string { buf := []string{} - if p.NewVersion == "" { - return "" - } - packVer := fmt.Sprintf("%s-%s -> %s", p.Name, p.FormatVer(), p.FormatNewVer()) var delim bytes.Buffer diff --git a/report/tui.go b/report/tui.go index ee3a554c..59e89273 100644 --- a/report/tui.go +++ b/report/tui.go @@ -20,10 +20,10 @@ package report import ( "bytes" "fmt" - "html/template" "os" "sort" "strings" + "text/template" "time" "github.com/future-architect/vuls/config"