diff --git a/archetype/eureka.go b/archetype/eureka.go index 48ee133..adc3f1d 100644 --- a/archetype/eureka.go +++ b/archetype/eureka.go @@ -241,7 +241,7 @@ func (self *EurekaAdapter) SavePage(oldSlug, newSlug, title, content string) err os.Remove(filepath.Join(self.Root, "inc", oldSlug)) } - f.WriteString(content) + f.WriteString(strings.ReplaceAll(content, "\r", "")) return nil }