Skip to content

Commit

Permalink
Merge remote-tracking branch 'pmos/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Danct12 committed Aug 5, 2021
2 parents d86746a + 4269b45 commit 89d87aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions danctnix_tweaks/settingstree.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def set_value(self, value):
if clear and line.strip() == self.guard_start:
ignore = True
continue

if not ignore:
result.append(line)

Expand All @@ -271,7 +271,7 @@ def set_value(self, value):
result.append('}\n')

if not found and not clear:
if not result[-1].endswith('\n'):
if len(result) > 0 and not result[-1].endswith('\n'):
result.append('\n')
result.append(self.guard_start + '\n')
result.append(self.selector + ' {\n')
Expand Down

0 comments on commit 89d87aa

Please sign in to comment.