Commit a0c0bd5
fix: resolve attachment export inconsistencies (#108)
- Unify filename encoding between tryCopyImage and tryCopyMarkdownByRead
(both now use encodeURI(fileName) when fileNameEncode is off)
- Add check to skip copying when source and target paths are identical
(prevents file corruption for attachments already in output folder)
Fixes issues where:
- Some attachments had encoded names while others didn't
- Attachment files were corrupted during export
- Attachments were placed in different folders inconsistently
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent e631e1a commit a0c0bd5
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
| 358 | + | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
397 | 403 | | |
398 | 404 | | |
399 | 405 | | |
| |||
0 commit comments