Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fact_pdf_report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
fact_pdf_report
Commits
db80073b
Commit
db80073b
authored
Mar 10, 2021
by
Jörg Stucke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed typos
parent
ee9a7f0b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
main.tex
pdf_generator/templates/default/main.tex
+1
-1
template_engine.py
pdf_generator/tex_generation/template_engine.py
+3
-3
No files found.
pdf_generator/templates/default/main.tex
View file @
db80073b
...
...
@@ -76,7 +76,7 @@
\section
{
Software
}
\begin{twentyshort}
\BLOCK
{
for summary in analysis['software
_
components']['summary'] | sort | x
_
ent
ir
es
}
\BLOCK
{
for summary in analysis['software
_
components']['summary'] | sort | x
_
ent
ri
es
}
\twentyitemshort
{
\VAR
{
summary | split
_
space
}}
\BLOCK
{
endfor
}
\BLOCK
{
if analysis['software
_
components']['summary'] | elements
_
count > 10
}
...
...
pdf_generator/tex_generation/template_engine.py
View file @
db80073b
...
...
@@ -170,8 +170,8 @@ def get_triples(analysis):
return
combined_triples
def
_get_desired_triple
(
seleced_summary
,
which_desired
):
desired_list
=
_ip_or_uri
(
seleced_summary
,
which_desired
)
def
_get_desired_triple
(
selec
t
ed_summary
,
which_desired
):
desired_list
=
_ip_or_uri
(
selec
t
ed_summary
,
which_desired
)
chosen_one
=
'x x'
*
60
while
len
(
chosen_one
)
>
50
:
chosen_one
=
choice
(
desired_list
)
...
...
@@ -227,7 +227,7 @@ def _add_filters_to_jinja(environment):
environment
.
filters
[
'call_for_mitigations'
]
=
exploit_mitigation
environment
.
filters
[
'split_space'
]
=
software_components
environment
.
filters
[
'triplet'
]
=
get_triples
environment
.
filters
[
'x_ent
ir
es'
]
=
get_x_entries
environment
.
filters
[
'x_ent
ri
es'
]
=
get_x_entries
environment
.
filters
[
'cve_crits'
]
=
cve_criticals
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment