force dot instead of comma

This commit is contained in:
Mylloon 2024-10-06 21:08:09 +02:00
parent 992c9eb003
commit 4ed32db408
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -47,6 +47,7 @@ function latex-color --description "Get the LaTeX color from HEX code"
set a (math "0x$(string sub -s 7 -l 2 $hex) / 255") set a (math "0x$(string sub -s 7 -l 2 $hex) / 255")
set -x LC_NUMERIC C
if test $a -eq 1 if test $a -eq 1
printf "{%.2f, %.2f, %.2f}\n" $r $g $b printf "{%.2f, %.2f, %.2f}\n" $r $g $b
else else