diff --git a/CHANGELOG.md b/CHANGELOG.md index ca4d8a7d..b65f0b63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,11 @@ ### Deprecated ### Removed ### Fixed + +* Regression: `letter-spacing` resulting in a “not a valid option” + error (https://codeberg.org/dnkl/foot/issues/795). + + ### Security ### Contributors diff --git a/config.c b/config.c index 905f26d6..2f12e201 100644 --- a/config.c +++ b/config.c @@ -956,7 +956,7 @@ parse_section_main(struct context *ctx) return value_to_pt_or_px(ctx, &conf->line_height); else if (strcmp(key, "letter-spacing") == 0) - value_to_pt_or_px(ctx, &conf->letter_spacing); + return value_to_pt_or_px(ctx, &conf->letter_spacing); else if (strcmp(key, "horizontal-letter-offset") == 0) return value_to_pt_or_px(ctx, &conf->horizontal_letter_offset);