modules.reportwriter.richtext.plain_text.py
data-gw-evidence not replaced in output
#462
Labels
bug
Something isn't working
Describe the bug
When generating a XLSX document any evidence
{{.X}}
should be being replaced with<See Report for Evidence File: X> Caption \u2013 X
However the
get()
to obtain the evidence ID from the evidences dictionary currently returns aNoneType
The
node.attrs["data-gw-evidence"]
will be a string (At least it has been in my testing) and it needs to be converted to<class 'int'>
to match the dictionary keyTo Reproduce
Steps to reproduce the behavior:
Expected Behavior
The
evidence
variable gets populated and the XLSX report contains "<See Report for Evidence File:...."Server Specs:
The text was updated successfully, but these errors were encountered: