Skip to content

Commit

Permalink
fix: Prevent collapsing of value in PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
miggol committed Jan 8, 2025
1 parent eef2eae commit 43c3c5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proposals/utils/pdf_diff_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ def __init__(self, obj, field, proposal=None):
self.proposal = proposal

def value(self):
return RowValue(self.obj, self.field, self.proposal).get_field_value()
val = RowValue(self.obj, self.field, self.proposal).get_field_value()
if val == "":
# Prevent collapsing of the value area
val = mark_safe(" ")
return val

def verbose_name(self):
if self.field in self.verbose_name_diff_field_dict:
Expand Down

0 comments on commit 43c3c5a

Please sign in to comment.