config: fix: attributes always use dash, not underscore

This commit is contained in:
Daniel Eklöf 2019-01-12 13:56:02 +01:00
parent 650e152091
commit 731ab848e1
4 changed files with 14 additions and 14 deletions

View file

@ -567,8 +567,8 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
{
const struct yml_node *content = yml_get_value(node, "content");
const struct yml_node *spacing = yml_get_value(node, "spacing");
const struct yml_node *left_spacing = yml_get_value(node, "left_spacing");
const struct yml_node *right_spacing = yml_get_value(node, "right_spacing");
const struct yml_node *left_spacing = yml_get_value(node, "left-spacing");
const struct yml_node *right_spacing = yml_get_value(node, "right-spacing");
int left = spacing != NULL ? yml_value_as_int(spacing) :
left_spacing != NULL ? yml_value_as_int(left_spacing) : 0;