Skip to content

Commit 3367981

Browse files
authored
Update align_yaml.py
1 parent 237d68b commit 3367981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

align_yaml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ def align_yaml(str, pad=0):
55
longest = max([len(i) for i in props]) + pad
66
return ''.join([i+'\n' for i in map(lambda str:
77
re.sub(r'^(\s*.+?[^:#]: )\s*(.*)', lambda m:
8-
m.group(1) + ''.ljust(longest - len(m.group(1)) + 1) + m.group(2),
8+
m.group(1) + ''.ljust(longest-len(m.group(1))+1) + m.group(2),
99
str, re.MULTILINE)
1010
, str.split('\n'))])

0 commit comments

Comments
 (0)