EurekaAdapter: strip carriage returns on save

This commit is contained in:
Iris Lightshard 2022-10-31 22:39:53 -06:00
parent 99c7b9f095
commit 645dd26393
Signed by: nilix
GPG key ID: 3B7FBC22144E6398

View file

@ -241,7 +241,7 @@ func (self *EurekaAdapter) SavePage(oldSlug, newSlug, title, content string) err
os.Remove(filepath.Join(self.Root, "inc", oldSlug)) os.Remove(filepath.Join(self.Root, "inc", oldSlug))
} }
f.WriteString(content) f.WriteString(strings.ReplaceAll(content, "\r", ""))
return nil return nil
} }