mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Use fully quoted CSV writer for changes.csv
This commit is contained in:
parent
4f3f7efd5a
commit
a1f446f443
3 changed files with 75 additions and 2 deletions
|
|
@ -17,6 +17,8 @@ import (
|
|||
"path/filepath"
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
"github.com/csaf-poc/csaf_distribution/util"
|
||||
)
|
||||
|
||||
func updateIndex(dir, fname string) error {
|
||||
|
|
@ -141,7 +143,7 @@ func updateChanges(dir, fname string, releaseDate time.Time) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
c := csv.NewWriter(o)
|
||||
c := util.NewFullyQuotedCSWWriter(o)
|
||||
record := make([]string, 2)
|
||||
for _, ch := range chs {
|
||||
record[timeColumn] = ch.time.Format(dateFormat)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue