EurekaAdapter: strip carriage returns on save
This commit is contained in:
parent
99c7b9f095
commit
645dd26393
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue