Dictionary: Serialize empty dict as {} instead of {\n}
Also make sure to always convert multiline dictionaries to a single line for its EditorHelp representation, as multiline values break formatting.
This commit is contained in:
@ -24,8 +24,7 @@
|
||||
<argument index="0" name="text" type="String" />
|
||||
<argument index="1" name="fonts" type="Font" />
|
||||
<argument index="2" name="size" type="int" />
|
||||
<argument index="3" name="opentype_features" type="Dictionary" default="{
|
||||
}" />
|
||||
<argument index="3" name="opentype_features" type="Dictionary" default="{}" />
|
||||
<argument index="4" name="language" type="String" default="""" />
|
||||
<description>
|
||||
Adds text span and font to draw it.
|
||||
@ -259,8 +258,7 @@
|
||||
<argument index="1" name="fonts" type="Font" />
|
||||
<argument index="2" name="size" type="int" />
|
||||
<argument index="3" name="dropcap_margins" type="Rect2" default="Rect2(0, 0, 0, 0)" />
|
||||
<argument index="4" name="opentype_features" type="Dictionary" default="{
|
||||
}" />
|
||||
<argument index="4" name="opentype_features" type="Dictionary" default="{}" />
|
||||
<argument index="5" name="language" type="String" default="""" />
|
||||
<description>
|
||||
Sets drop cap, overrides previously set drop cap. Drop cap (dropped capital) is a decorative element at the beginning of a paragraph that is larger than the rest of the text.
|
||||
|
||||
Reference in New Issue
Block a user