Skip to content

Commit 7b2c372

Browse files
authored
Update composer.py
Quick fix to allow comments with a large headers list
1 parent 5c01e66 commit 7b2c372

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nix_tree/composer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ def __separate_and_add_headers(self) -> None:
327327
else:
328328
self.__composer_iterator.lines += header.strip() + "\n"
329329
self.__composer_iterator.lines += "}:"
330+
self.__composer_iterator.previous_addition = "}:"
330331
else:
331332
self.__composer_iterator.lines += "{" + headers + "}:"
332333
self.__composer_iterator.previous_addition = "}:"

0 commit comments

Comments
 (0)