feat(空格处理): 规范空格转义,修复文字错位
build.yaml / build (push) Successful in 48s

This commit is contained in:
xiaoqidun committed 2026-10-12 23:39:27 +08:00
1 parent f8263f798f
commit 85fbb77d63
4 files changed
+25 -2

No files matched your search

+1
View File
@@ -1107,6 +1107,7 @@ func (x *ofdXML) textCode(value string, attrs ofdAttrs) {
if !x.checkContext() {
return
}
value = textCodeXMLValue(value)
x.escaped.Reset()
if x.err = xml.EscapeText(&x.escaped, []byte(value)); x.err != nil {
return