summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorXiaobo Gu <xiaobo.gu@amlogic.com>2015-06-09 15:59:31 +0800
committerHaixiang Bao <haixiang.bao@amlogic.com>2015-06-09 01:07:09 -0700
commit5dedb51bd6b67f381bf829a7305e46bbfdcb5f95 (patch)
tree9387af59fa90ffd6bfbe8f47c84cdd1ea603997a /scripts
parent73f9341777e74798194e17eb317c1d74a74749ce (diff)
downloadu-boot-odroid-c1-5dedb51bd6b67f381bf829a7305e46bbfdcb5f95.tar.gz
Update coding style fix script
a). Fix ident style case Change-Id: I5354eb968160feca3794c5dd56e02b4e3fdae38f
Diffstat (limited to 'scripts')
-rw-r--r--scripts/amlogic/coding_style/auto_fix.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/amlogic/coding_style/auto_fix.py b/scripts/amlogic/coding_style/auto_fix.py
index d06ddcec99..498cfae032 100644
--- a/scripts/amlogic/coding_style/auto_fix.py
+++ b/scripts/amlogic/coding_style/auto_fix.py
@@ -205,6 +205,8 @@ class fixer(object):
no_blank_str_tmp = no_blank_str.replace(" ", " ")
if (no_blank_str_tmp == no_blank_str):
no_blank_str = no_blank_str.replace(" ", " ")
+ else:
+ no_blank_str = no_blank_str_tmp
#print self.cur_line_content
self.cur_line_content = no_blank_str + self.cur_line_content[cur_line_first_noblank_pos:cur_line_length]
#print self.cur_line_content