Commit 74362e90 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Better reformat GSER strings

parent fcaf4a22
......@@ -170,8 +170,9 @@ def fromValueNotationToPySide(varName, string):
def format_gser(gser):
''' Reformat a GSER string '''
gser1 = ''.join(x.strip() for x in gser.split())
return ', '.join(gser1.split(',')).replace(':', ': ')
return ', '.join(u.strip()
for u in ' '.join(gser.split())
.split(',')).replace(' :', ':').replace('{ ', '{').replace(' }', '}')
def toASN1ValueNotation(val):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment