Skip to content
Snippets Groups Projects
Commit bd49bc0f authored by Victor Poughon's avatar Victor Poughon
Browse files

DOC: fix default value formatting

parent fb2c517d
No related branches found
No related tags found
No related merge requests found
......@@ -231,7 +231,7 @@ def rst_parameter_flags(app, key):
if app.IsMandatory(key) and not app.HasValue(key):
return "*Mandatory* "
elif app.HasValue(key) and app.GetParameterType(key) != ParameterType_Group:
return "*Default value: {}* ".format(app.GetParameterValue(key))
return "*Default value: {}* ".format(app.GetParameterAsString(key)) # get value as string to use the same formatting as the c++ api
else:
return ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment