fix: chinese name export (#4890)

* fix: chinese name export

* fix: xlsx white space

* doc

* doc
This commit is contained in:
Archer
2025-05-25 21:19:29 +08:00
committed by GitHub
parent 1dea2b71b4
commit 874300a56a
5 changed files with 12 additions and 9 deletions

View File

@@ -28,11 +28,11 @@ export const readXlsxRawText = async ({
if (!header) return;
const formatText = `| ${header.join(' | ')} |
| ${header.map(() => '---').join(' | ')} |
${csvArr
.slice(1)
.map((row) => `| ${row.map((item) => item.replace(/\n/g, '\\n')).join(' | ')} |`)
.join('\n')}`;
| ${header.map(() => '---').join(' | ')} |
${csvArr
.slice(1)
.map((row) => `| ${row.map((item) => item.replace(/\n/g, '\\n')).join(' | ')} |`)
.join('\n')}`;
return formatText;
})