https://bugs.kde.org/show_bug.cgi?id=461390

--- Comment #2 from mil...@gmail.com ---
fixed python code

#!/usr/bin/env python3
# convert css values from short float to full float
# example: .9 to 0.9
# aka: expand minified float values
# fix too large fonts in okular
# TODO regex is bad. use a proper css linter: stylelint
# https://bugs.kde.org/show_bug.cgi?id=461390
import re, sys
with open(sys.argv[1], "r") as f: css = f.read()
print(re.sub(r":\s*\.([0-9]+)([a-zA-Z]+)\s*;", r":0.\1\2;", css))

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to