1
Fork 0
mirror of https://github.com/thegeneralist01/archivr synced 2026-10-09 12:55:00 +02:00

fix: preserve text draft whitespace in capture UI

This commit is contained in:
archivr-qa 2026-08-24 17:24:14 +02:00
parent 566b4eb7d7
commit b609f3f012
No known key found for this signature in database

View file

@ -535,7 +535,7 @@ export default function CaptureDialog({ open, archiveId, onClose, onCaptured, on
return { type: 'file', locator: it.uploadLocator, quality: 'best', extraExtensions: {} } return { type: 'file', locator: it.uploadLocator, quality: 'best', extraExtensions: {} }
} }
if (it.kind === 'text') { if (it.kind === 'text') {
return { type: 'text', title: it.title.trim(), body: it.body.trim(), mime: it.mime } return { type: 'text', title: it.title.trim(), body: it.body, mime: it.mime }
} }
return { return {
type: 'url', type: 'url',