mirror of
https://github.com/mandiant/capa.git
synced 2026-01-05 09:17:47 -08:00
render: display lists of things as comma separated
This commit is contained in:
@@ -86,6 +86,8 @@ def render_vverbose(doc):
|
||||
v = rule['meta'][key]
|
||||
if isinstance(v, list) and len(v) == 1:
|
||||
v = v[0]
|
||||
elif isinstance(v, list) and len(v) > 1:
|
||||
v = ', '.join(v)
|
||||
rows.append((key, v))
|
||||
|
||||
ostream.writeln(tabulate.tabulate(rows, tablefmt='plain'))
|
||||
|
||||
Reference in New Issue
Block a user