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
2 merge requests!621Release 7.0 (master),!316Christmas CookBook
...@@ -231,7 +231,7 @@ def rst_parameter_flags(app, key): ...@@ -231,7 +231,7 @@ def rst_parameter_flags(app, key):
if app.IsMandatory(key) and not app.HasValue(key): if app.IsMandatory(key) and not app.HasValue(key):
return "*Mandatory* " return "*Mandatory* "
elif app.HasValue(key) and app.GetParameterType(key) != ParameterType_Group: 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: else:
return "" 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