mirror of https://github.com/CIRCL/AIL-framework
fix: [ModulesInformationV2] fix #244
parent
5732d7b134
commit
2e763ba0aa
|
@ -724,6 +724,7 @@ def format_string(tab, padding_row):
|
||||||
text=""
|
text=""
|
||||||
for ite, elem in enumerate(the_array):
|
for ite, elem in enumerate(the_array):
|
||||||
|
|
||||||
|
if elem is not None and type(elem) is str:
|
||||||
if len(elem) > padding_row[ite]:
|
if len(elem) > padding_row[ite]:
|
||||||
text += "*" + elem[-padding_row[ite]+6:]
|
text += "*" + elem[-padding_row[ite]+6:]
|
||||||
padd_off = " "*5
|
padd_off = " "*5
|
||||||
|
@ -731,6 +732,7 @@ def format_string(tab, padding_row):
|
||||||
text += elem
|
text += elem
|
||||||
padd_off = " "*0
|
padd_off = " "*0
|
||||||
text += (padding_row[ite] - len(elem))*" " + padd_off
|
text += (padding_row[ite] - len(elem))*" " + padd_off
|
||||||
|
|
||||||
printstring.append( (text, the_pid) )
|
printstring.append( (text, the_pid) )
|
||||||
return printstring
|
return printstring
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue