Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Commit 2e7179d

Browse files
forslundSteve Penrod
authored andcommitted
Strip trailing blank lines (#1817)
If a blank line is intended add a single space and it will be included
1 parent 3843f5a commit 2e7179d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mycroft/skills/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ def __translate_file(self, name, data):
669669
if filename:
670670
with open(filename) as f:
671671
text = f.read().replace('{{', '{').replace('}}', '}')
672-
return text.format(**data or {}).split('\n')
672+
return text.format(**data or {}).rstrip('\n').split('\n')
673673
else:
674674
return None
675675

0 commit comments

Comments
 (0)