Cleanup
This commit is contained in:
parent
0523ad02c0
commit
0babb4b102
@ -848,7 +848,7 @@ def InsertNamespace( namespace ):
|
|||||||
pattern = '^\s*using\(\s\+[a-zA-Z0-9]\+\s\+=\)\?\s\+[a-zA-Z0-9.]\+\s*;\s*'
|
pattern = '^\s*using\(\s\+[a-zA-Z0-9]\+\s\+=\)\?\s\+[a-zA-Z0-9.]\+\s*;\s*'
|
||||||
existing_indent = ''
|
existing_indent = ''
|
||||||
line = SearchInCurrentBuffer( pattern )
|
line = SearchInCurrentBuffer( pattern )
|
||||||
if line > 0:
|
if line:
|
||||||
existing_line = LineTextInCurrentBuffer( line )
|
existing_line = LineTextInCurrentBuffer( line )
|
||||||
existing_indent = re.sub( r"\S.*", "", existing_line )
|
existing_indent = re.sub( r"\S.*", "", existing_line )
|
||||||
new_line = "{0}using {1};\n\n".format( existing_indent, namespace )
|
new_line = "{0}using {1};\n\n".format( existing_indent, namespace )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user