rtf: delegate outline lexing and sniffing to craft-rtf (refs storytold/craft-libs#778) (#2264)

* rtf: delegate outline lexing and sniffing to craft-rtf (refs storytold/craft-libs#778)

* rtf: delegate sniff_rtf to craft_rtf::is_rtf and keep local outline scanner for hex/huge-indent parity
This commit is contained in:
Dylan M. Taylor authored and GitHub committed 2026-11-19 18:32:32 -05:00
1 parent 55f903dc4c
commit f28d733815
1 file changed
+1 -1
+1 -1
View File
@@ -96,7 +96,7 @@ pub fn slides_to_rtf(p: &Presentation) -> String {
/// Whether `bytes` look like RTF.
pub fn sniff_rtf(bytes: &[u8]) -> bool {
bytes.trim_ascii_start().starts_with(b"{\\rtf")
craft_rtf::is_rtf(bytes)
}
/// Destinations whose text is not document text.