Merge pull request #35357 from akien-mga/makerst-default-values-code
makerst: Use code markup for default values/overrides
This commit is contained in:
commit
601500168d
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ class State:
|
|||
getter = property.get("getter") or None
|
||||
default_value = property.get("default") or None
|
||||
if default_value is not None:
|
||||
default_value = escape_rst(default_value)
|
||||
default_value = '``{}``'.format(default_value)
|
||||
overridden = property.get("override") or False
|
||||
|
||||
property_def = PropertyDef(property_name, type_name, setter, getter, property.text, default_value, overridden)
|
||||
|
|
Loading…
Reference in a new issue