fix: \r escape for libreoffice (#17)

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

View File

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