summaryrefslogtreecommitdiff
path: root/wget.go
diff options
context:
space:
mode:
Diffstat (limited to 'wget.go')
-rw-r--r--wget.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/wget.go b/wget.go
index bd767d6..a09550b 100644
--- a/wget.go
+++ b/wget.go
@@ -74,8 +74,7 @@ func WgetToFile(filepath string, url string) error {
// BUGS: The author's idea of friendly may differ to that of many other people.
func Write(filepath string, data string) bool {
// TODO: this isn't working for some reason and is making two '\n' chars
- // probably because Chomp() isn't fixed yet
- data = Chomp(data) + "\n"
+ data = strings.TrimSpace(data) + "\n"
// Create the file
ospath := Path(filepath)
log.Log(INFO, "shell.Write() START ospath =", ospath, "filepath =", filepath)