Visitar URL original
Properly find the number of spaces · webin/SublimeCodeIntel@3d94f83 · GitHub
Skip to content

Commit 3d94f83

Browse files
committed
Properly find the number of spaces
1 parent 047d69a commit 3d94f83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎libs/codeintel2/parseutil.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def uncommentDocString(doc):
139139

140140
# guess the indent size
141141
spaces = re.findall(_indent, d)
142-
indent = spaces[0]
142+
indent = len(spaces[0])
143143
for s in spaces:
144144
if len(s) and len(s) < indent:
145145
indent = len(s)

0 commit comments

Comments
 (0)