mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-09 12:32:52 +00:00
Format merged import lists
This commit is contained in:
1 parent
cf10038885
commit
8a39399b80
2 files changed
+5
-4
No files matched your search
@@ -3,9 +3,9 @@
|
||||
use super::{
|
||||
BlockStyle, CraftFont, Dict, Document, EditError, HashMap, LineEdit, MAX_TYPE3_GLYPHS, Matrix, Metrics, Object, Op, PdfString, Pieces,
|
||||
RangeStyle, TextBlock, TextLine, Type3Glyph, builtin_thai_choice, coincident_ops, content_streams, fallback_face, japanese_glyph_from,
|
||||
kept_words, needs_type3, no_fallback_font, no_glyph_for, page_dict, paragraph_separator, reveal_ops, rewritten_contents, row_break, same_base_font,
|
||||
same_font, source_encodes, source_family, source_program, source_show, source_space, source_width, splice, strip_subset_tag, type3_faces,
|
||||
type3_glyph, union, word_lines, write_type3_glyphs,
|
||||
kept_words, needs_type3, no_fallback_font, no_glyph_for, page_dict, paragraph_separator, reveal_ops, rewritten_contents, row_break,
|
||||
same_base_font, same_font, source_encodes, source_family, source_program, source_show, source_space, source_width, splice, strip_subset_tag,
|
||||
type3_faces, type3_glyph, union, word_lines, write_type3_glyphs,
|
||||
};
|
||||
|
||||
#[path = "text_regions/grouping.rs"]
|
||||
|
||||
@@ -406,7 +406,8 @@ impl<'a> Inspector<'a> {
|
||||
Ok(Object::Array(k)) => k.clone(),
|
||||
_ => Vec::new(),
|
||||
};
|
||||
let (field_kids, widget_kids): (Vec<Object>, Vec<Object>) = kids.iter().cloned().partition(|k| self.dict(k).is_some_and(|kd| kd.get(b"T").is_ok()));
|
||||
let (field_kids, widget_kids): (Vec<Object>, Vec<Object>) =
|
||||
kids.iter().cloned().partition(|k| self.dict(k).is_some_and(|kd| kd.get(b"T").is_ok()));
|
||||
let field_kids: Vec<_> = field_kids.iter().filter(|k| !self.not_a_child(walk, o, k)).collect();
|
||||
if !field_kids.is_empty() {
|
||||
let here = match o {
|
||||
|
||||
Reference in new issue
Block a user