We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa1eeb0 commit 495de45Copy full SHA for 495de45
mapmaker/sources/svg/rasteriser.py
@@ -79,6 +79,7 @@ def round(x: float|int) -> int:
79
#===============================================================================
80
81
def make_colour(colour_string, opacity=1.0):
82
+ colour_string = colour_string.strip()
83
if colour_string.startswith('#'):
84
colour = webcolors.hex_to_rgb(colour_string)
85
elif colour_string.startswith('rgb('):
0 commit comments