Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/bo4e/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def add_comments_to_description(cls: type[T]) -> type[T]:

for field_name, field_info in cls.model_fields.items():
if field_info.description is not None:
field_info.description = field_info.description.strip()
continue
# search for (single line) comments above the field
match = re.search(regex_comment_above.format(field_name=field_name), fields_code)
Expand Down