Ups. Forgot to add this.
This commit is contained in:
parent
fe7cb4cf8d
commit
14fca85231
@ -77,7 +77,8 @@ def _parse_snippet(line, lines):
|
|||||||
trigger, description = head_tail(line[len("snippet"):].lstrip())
|
trigger, description = head_tail(line[len("snippet"):].lstrip())
|
||||||
content = ""
|
content = ""
|
||||||
while True:
|
while True:
|
||||||
if not lines.peek().startswith('\t'):
|
next_line = lines.peek()
|
||||||
|
if next_line is None or not next_line.startswith('\t'):
|
||||||
break
|
break
|
||||||
content += next(lines)[1:] # strip first tab
|
content += next(lines)[1:] # strip first tab
|
||||||
content = content[:-1] # Chomp the last newline
|
content = content[:-1] # Chomp the last newline
|
||||||
|
Loading…
Reference in New Issue
Block a user