Skip to content

Commit 0841f83

Browse files
authored
🩹Strip descriptions (#866)
1 parent 713a24d commit 0841f83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bo4e/utils/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def add_comments_to_description(cls: type[T]) -> type[T]:
3131

3232
for field_name, field_info in cls.model_fields.items():
3333
if field_info.description is not None:
34+
field_info.description = field_info.description.strip()
3435
continue
3536
# search for (single line) comments above the field
3637
match = re.search(regex_comment_above.format(field_name=field_name), fields_code)

0 commit comments

Comments
 (0)