mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-04-01 17:35:13 +08:00
Converted tabs to spaces in webconfig script
This commit is contained in:
parent
0fe44f0e2a
commit
379cf3d249
@ -75,7 +75,6 @@ def better_color(c1, c2):
|
|||||||
if c1 in named_colors: return c2
|
if c1 in named_colors: return c2
|
||||||
return c1
|
return c1
|
||||||
|
|
||||||
|
|
||||||
def parse_color(color_str):
|
def parse_color(color_str):
|
||||||
""" A basic function to parse a color string, for example, 'red' '--bold' """
|
""" A basic function to parse a color string, for example, 'red' '--bold' """
|
||||||
comps = color_str.split(' ')
|
comps = color_str.split(' ')
|
||||||
@ -98,7 +97,6 @@ def parse_color(color_str):
|
|||||||
|
|
||||||
return [color, background_color, bold, underline]
|
return [color, background_color, bold, underline]
|
||||||
|
|
||||||
|
|
||||||
def parse_bool(val):
|
def parse_bool(val):
|
||||||
val = val.lower()
|
val = val.lower()
|
||||||
if val.startswith('f') or val.startswith('0'): return False
|
if val.startswith('f') or val.startswith('0'): return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user