1
0

css compiler fixes (2)
All checks were successful
Build Docker and Deploy / Build Docker (push) Successful in 12m41s
Build Docker and Deploy / Deploy to Server (push) Successful in 15s

This commit is contained in:
2026-02-08 00:35:49 +01:00
parent e4872d19c0
commit 63989d9bc7
3 changed files with 3 additions and 3 deletions

View File

@@ -165,7 +165,7 @@ for (l, c) in reversed(ins):
print('======== MORE ========')
# fixes `calc(100%+5px)` stuff
data = re.compile(r"calc\(([^)]+)\)").sub(lambda m: "calc(" + re.sub(r"(?<=[^\s])([\+\-\*/])(?=[^\s])", " \\1 ", m.group(1)) + ")", data)
data = re.compile(r"calc\(([^)]+)\)").sub(lambda m: "calc(" + re.sub(r"(?<=[%0-9])([\+\-\*/])(?=[%0-9])", " \\1 ", m.group(1)) + ")", data)
print('')