Use ReplaceAll instead of Replace with n=-1

This commit is contained in:
Ismael Padilla 2022-07-14 17:17:36 -03:00 committed by Christian Muehlhaeuser
parent a86f21a0ae
commit e8297c491f

View File

@ -262,7 +262,7 @@ func (s Style) Render(str string) string {
// Strip newlines in single line mode
if inline {
str = strings.Replace(str, "\n", "", -1)
str = strings.ReplaceAll(str, "\n", "")
}
// Word wrap