Merge pull request #35357 from akien-mga/makerst-default-values-code

makerst: Use code markup for default values/overrides
This commit is contained in:
Rémi Verschelde 2020-01-20 12:57:09 +01:00 committed by GitHub
commit 601500168d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)