Skip to content
Snippets Groups Projects
Unverified Commit e3f83862 authored by Martijn Braam's avatar Martijn Braam
Browse files

Don't write invalid CSS files if the gtk.css file doesn't end with a newline

parent 8e91f51b
No related branches found
Tags 0.7.1
No related merge requests found
......@@ -271,6 +271,8 @@ class Setting:
result.append('}\n')
if not found and not clear:
if not result[-1].endswith('\n'):
result.append('\n')
result.append(self.guard_start + '\n')
result.append(self.selector + ' {\n')
for rule in self.rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment