Fix units for height and width in mspace

This commit is contained in:
Marcel Fabian Krüger 2023-12-19 21:35:33 +01:00
parent 7a52f5580b
commit 89f8e2a79a

View File

@ -462,13 +462,13 @@ local function rule_to_table(rule, sub, cur_style)
if height == running_length then if height == running_length then
height = '0.8em' height = '0.8em'
else else
height = height height = string.format("%.3fpt", height/65781.76)
end end
local depth = rule.depth local depth = rule.depth
if depth == running_length then if depth == running_length then
depth = '0.2em' depth = '0.2em'
else else
depth = depth depth = string.format("%.3fpt", depth/65781.76)
end end
return {[0] = 'mspace', mathbackground = 'currentColor', width = width, height = height, depth = depth}, space_like return {[0] = 'mspace', mathbackground = 'currentColor', width = width, height = height, depth = depth}, space_like
end end