Skip to content

Commit b3b6914

Browse files
authored
fix: escape (#18)
1 parent 6bd903e commit b3b6914

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docx-core/src/escape/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ pub(crate) fn escape(text: &str) -> String {
66
.replace('\'', "'")
77
.replace('\n', "
")
88
// If \r escape to &#xD, this cause error in libreoffice
9-
.replace('\r', "
")
9+
// .replace('\r', "
")
10+
.replace('\r', "")
1011
}

docx-wasm/pkg/docx_rs_bg.wasm

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)