Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Dec 18, 2024
1 parent 17883ca commit 9a68be5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/krilla/src/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,9 @@ where
// to have a valid codepoint mapping. So in this case, we still add the codepoints
// to each glyph in the cluster, this will result in worse copy-pasting in viewers
// that don't support `ActualText`.
if !incompatible_codepoint && (previous_range != Some(range.clone()) || forbid_invalid_codepoints) {
if !incompatible_codepoint
&& (previous_range != Some(range.clone()) || forbid_invalid_codepoints)
{
pdf_font.set_codepoints(pdf_glyph, text.to_string());
}

Expand Down

0 comments on commit 9a68be5

Please sign in to comment.