summaryrefslogtreecommitdiff
path: root/support/make4ht/filters/make4ht-mjcli.lua
diff options
context:
space:
mode:
Diffstat (limited to 'support/make4ht/filters/make4ht-mjcli.lua')
-rw-r--r--support/make4ht/filters/make4ht-mjcli.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/make4ht/filters/make4ht-mjcli.lua b/support/make4ht/filters/make4ht-mjcli.lua
index c7b3c46507..f610246439 100644
--- a/support/make4ht/filters/make4ht-mjcli.lua
+++ b/support/make4ht/filters/make4ht-mjcli.lua
@@ -62,7 +62,8 @@ local function parse_css(css, file_class)
status = "record"
end
elseif status == "record" then
- if line:match("%}") then
+ -- find end of the CSS rule
+ if line:match("}%s*$") then
status = "init"
if not used_styles[current_selector] then
table.insert(saved_styles, {selector = current_selector, content = current})