Skip to content

Commit

Permalink
Merge pull request #653 from riyaa14/fix-model-generation-workflow
Browse files Browse the repository at this point in the history
[CI] Avoid model generator workflow to push formatting changes in SVGs
  • Loading branch information
leecalcote authored Jan 29, 2025
2 parents b85d51c + 31c6d21 commit 65f7e2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/csv/csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ func (c *CSV[E]) Parse(ch chan E, errorChan chan error) error {
attribute = key
}
}

// To keep uniform formatting. This avoids formatting changes to be pushed in commits
if attribute == "svgwhite" || attribute == "svgcolor" || attribute == "svgcomplete" {
value = strings.ReplaceAll(value, "\n", "")
}

data[attribute] = value
}
}
Expand Down

0 comments on commit 65f7e2b

Please sign in to comment.