Skip to content

Commit

Permalink
ActionPlanTimeline: Strip whitespace when converting to plain text
Browse files Browse the repository at this point in the history
  • Loading branch information
reinhardt committed Nov 6, 2024
1 parent 599ed76 commit 2ed2d84
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/euphorie/client/browser/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,15 @@ def create_workbook(self):
if ntype == "measure":
value = getattr(measure, key, None)
if key == "action" and value:
value = portal_transforms.convertToData("text/plain", value)
value = portal_transforms.convertToData(
"text/plain", value
).strip()
elif ntype == "risk":
value = getattr(risk, key, None)
if key == "comment":
value = portal_transforms.convertToData("text/plain", value)
value = portal_transforms.convertToData(
"text/plain", value
).strip()
elif key == "priority":
value = self.priority_name(value)
elif key == "title":
Expand Down

0 comments on commit 2ed2d84

Please sign in to comment.