##// END OF EJS Templates
Fix an IndexError in leading_indent
Tony Fast -
Show More
@@ -24,6 +24,8 b' def leading_indent(lines):'
24 If the first line starts with a spaces or tabs, the same whitespace will be
24 If the first line starts with a spaces or tabs, the same whitespace will be
25 removed from each following line in the cell.
25 removed from each following line in the cell.
26 """
26 """
27 if not lines:
28 return lines
27 m = _indent_re.match(lines[0])
29 m = _indent_re.match(lines[0])
28 if not m:
30 if not m:
29 return lines
31 return lines
General Comments 0
You need to be logged in to leave comments. Login now