From 379cf3d24915d4b064ab60d62c20f67ebdd4126e Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Sat, 6 Jul 2013 21:09:20 +0530 Subject: [PATCH] Converted tabs to spaces in webconfig script --- share/tools/web_config/webconfig.py | 66 ++++++++++++++--------------- 1 file changed, 32 insertions(+), 34 deletions(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 8b5b24f92..4f07fd9d7 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -75,7 +75,6 @@ def better_color(c1, c2): if c1 in named_colors: return c2 return c1 - def parse_color(color_str): """ A basic function to parse a color string, for example, 'red' '--bold' """ comps = color_str.split(' ') @@ -98,7 +97,6 @@ def parse_color(color_str): return [color, background_color, bold, underline] - def parse_bool(val): val = val.lower() if val.startswith('f') or val.startswith('0'): return False @@ -229,11 +227,11 @@ def ansi_to_html(val): # Clean up empty spans, the nasty way idx = len(result) - 1 while idx >= 1: - if result[idx] == '' and result[idx-1].startswith('' and result[idx-1].startswith('