v0.1.2: format_unavailable fixes and HTML plain-text fallback
format_unavailable fixes and HTML plain-text fallback
Three clipboard_read bug fixes: correct error path for RTF-absent and
empty-clipboard cases, and stripped HTML that no longer bleeds script/style
content or loses word boundaries.
Fixed:
- RTF nil check: ObjC.unwrap(nil) is undefined (falsy); bridged wrapper is truthy — unwrap before testing so absent public.rtf returns format_unavailable instead of TypeError
- Empty clipboard text: pre-inspect before pbpaste; pbpaste returns "" for empty clipboard, now throws format_unavailable instead of returning empty content
- HTML stripHtmlTags: remove script/style block content entirely; insert space before block-level closing tags and br so adjacent blocks do not merge
181 tests pass; bun run devcheck clean.