pushed last commit with an indentation error.. embarassing!
This commit is contained in:
+2
-2
@@ -532,7 +532,7 @@ def validateHSLorHSV(color) :
|
|||||||
# RETURNS
|
# RETURNS
|
||||||
# truth if success, false if failure to detect a format
|
# truth if success, false if failure to detect a format
|
||||||
def detectColorFormat(color, outputFormats) :
|
def detectColorFormat(color, outputFormats) :
|
||||||
if 'rgb' in color.lower() :
|
if 'rgb' in color.lower() :
|
||||||
handleRGB(color, outputFormats)
|
handleRGB(color, outputFormats)
|
||||||
return True
|
return True
|
||||||
elif 'cmyk' in color.lower() :
|
elif 'cmyk' in color.lower() :
|
||||||
@@ -547,7 +547,7 @@ def detectColorFormat(color, outputFormats) :
|
|||||||
elif color.strip().startswith('hsv') :
|
elif color.strip().startswith('hsv') :
|
||||||
handleHSVorHSL(color, 'hsv', outputFormats)
|
handleHSVorHSL(color, 'hsv', outputFormats)
|
||||||
return True
|
return True
|
||||||
if '#' in color :
|
elif '#' in color :
|
||||||
handleHex(color, outputFormats)
|
handleHex(color, outputFormats)
|
||||||
return True
|
return True
|
||||||
else :
|
else :
|
||||||
|
|||||||
Reference in New Issue
Block a user