mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-20 09:04:51 +00:00
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:
1 parent
55f903dc4c
commit
f28d733815
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user