summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon <vesspa0330@gmail.com>2025-01-28 20:46:07 -0500
committerSimon <vesspa0330@gmail.com>2025-01-28 20:46:07 -0500
commit90425afb07bd154fa17b2de7b15f2ec39b425db7 (patch)
tree6f12bb8600280718d9ea6b50d5456f90e8bd0bdf
parentebdd8e05fa3dfe828a46024b9c9e6c028778b94d (diff)
pushed last commit with an indentation error.. embarassing!
-rw-r--r--color-converter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/color-converter.py b/color-converter.py
index 9cf9f5b..950dc92 100644
--- a/color-converter.py
+++ b/color-converter.py
@@ -532,7 +532,7 @@ def validateHSLorHSV(color) :
# RETURNS
# truth if success, false if failure to detect a format
def detectColorFormat(color, outputFormats) :
- if 'rgb' in color.lower() :
+ if 'rgb' in color.lower() :
handleRGB(color, outputFormats)
return True
elif 'cmyk' in color.lower() :
@@ -547,7 +547,7 @@ def detectColorFormat(color, outputFormats) :
elif color.strip().startswith('hsv') :
handleHSVorHSL(color, 'hsv', outputFormats)
return True
- if '#' in color :
+ elif '#' in color :
handleHex(color, outputFormats)
return True
else :