4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/formatters/default_formatter.rb', line 4
def do_description_format ticket_info
formatted_output = ''
if ticket_info[:description]
vuln_description_paragraph = build_paragraph ticket_info[:description]
vuln_description_paragraph.get_paragraph.each do |output|
do_formated_paragraph formatted_output, output
end
end
if ticket_info[:proof]
vuln_proof_paragraph = build_paragraph ticket_info[:proof]
vuln_proof_paragraph.get_paragraph.each do |output|
do_formated_paragraph formatted_output, output
end
end
if ticket_info[:solution]
vuln_solution_paragraph = build_paragraph ticket_info[:solution]
vuln_solution_paragraph.get_paragraph.each do |output|
do_formated_paragraph formatted_output, output
end
end
formatted_output
end
|