Skip to content

Commit

Permalink
PPF-415: fix logic for infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
chinapandaman committed Dec 9, 2023
1 parent 82192c6 commit aeb85db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PyPDFForm/core/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ def helper(v):

lines = text_width / width
if lines > 1:
current_min = len(value)
while current_min <= len(value):
current_min = 0
while current_min < len(value):
result = helper(value)
value = value[result:]
if current_min is None:
if current_min is 0:
current_min = result
else:
if result < current_min:
Expand Down

0 comments on commit aeb85db

Please sign in to comment.