Skip to content

Commit

Permalink
Added project note to the "Assessment Details" PPTX slide
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaddalena committed Dec 14, 2023
1 parent 4cd0cc9 commit d488a5c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ghostwriter/modules/reportwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2030,6 +2030,14 @@ def prepare_for_pptx(value):
1,
)

# This is required because `_process_text_xml()` expects a `finding` object and a `finding_body_shape` object
self.finding_body_shape = shapes.placeholders[1]
self._process_text_xml(self.report_json["project"]["note"], 1)
# The `_process_text_xml()` method adds a new paragraph, so we need to get the last one to increase the indent level
text_frame = get_textframe(self.finding_body_shape)
p = text_frame.paragraphs[-1]
p.level = 1

if self.report_json["objectives"]:
primary_objs = []
secondary_objs = []
Expand Down

0 comments on commit d488a5c

Please sign in to comment.