fix: escape (#18)

main
bokuweb 2019-12-16 18:57:13 +09:00 committed by GitHub
parent 6bd903ec10
commit b3b6914e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -6,5 +6,6 @@ pub(crate) fn escape(text: &str) -> String {
.replace('\'', "'") .replace('\'', "'")
.replace('\n', "
") .replace('\n', "
")
// If \r escape to &#xD, this cause error in libreoffice // If \r escape to &#xD, this cause error in libreoffice
.replace('\r', "
") // .replace('\r', "
")
.replace('\r', "")
} }

Binary file not shown.