From cddb86ded0257231a7bbf208340493a0a9a45d3e Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Fri, 28 Feb 2025 15:11:15 -0500 Subject: [PATCH] contrib/autostyle - fixed pattern match for tag result to handle spaces in the pattern --- contrib/autostyle.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/autostyle.lua b/contrib/autostyle.lua index a5feda3..32add29 100644 --- a/contrib/autostyle.lua +++ b/contrib/autostyle.lua @@ -106,7 +106,7 @@ local function autostyle_apply_one_image (image) if pref and string.len(pref) >= 6 then -- We need the tag, the value and the style_name provided from the configuration string - local tag, value, style_name = string.match(pref, "(%g+)%s*=%s*(%g+)%s*=>%s*(%g+)") + local tag, value, style_name = string.match(pref, "(%g+)%s*=%s*([%g ]-)%s*=>%s*(%g+)") -- check they all exist (correct syntax) if (not tag) then