Skip to content

Commit

Permalink
Changed restoration of emphasis value to be pure assignment instead o…
Browse files Browse the repository at this point in the history
…f bitwise operation & result assignment; Prevents original value from persisting - Restoring
  • Loading branch information
K-Hern committed Dec 4, 2024
1 parent 1f2b9e4 commit eaaff32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fpdf/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ def put_link(self, text):
# Restore previous style:
self.font_family = prev_style.family or self.font_family
self.font_size_pt = prev_style.size_pt or self.font_size_pt
self.font_emphasis |= prev_style.emphasis
self.font_emphasis = prev_style.emphasis
self.font_color = prev_style.color

# pylint: disable=no-self-use
Expand Down

0 comments on commit eaaff32

Please sign in to comment.