Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up grammars ending reduced arrays #105

Merged
merged 7 commits into from
Mar 6, 2025
Merged
Changes from 1 commit
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
Next Next commit
ElementData: fix whitespace in Particle comment
Signed-off-by: Moritz Barsnick <moritz.barsnick@chargebyte.com>
barsnick committed Jan 3, 2025
commit 10bb241ca6e6d34f67a2b3772d133647019c57c3
6 changes: 3 additions & 3 deletions src/cbexigen/elementData.py
Original file line number Diff line number Diff line change
@@ -398,10 +398,10 @@ def particle_comment(self):
comment_part += f'{particle.min_occurs}, {particle.max_occurs})'

if particle.parent_has_sequence:
comment_part += f'(was {particle.min_occurs_old}, {particle.max_occurs_old})'
comment_part += f'(seq. {particle.parent_sequence})'
comment_part += f' (was {particle.min_occurs_old}, {particle.max_occurs_old})'
comment_part += f' (seq. {particle.parent_sequence})'
elif particle.parent_model_changed_restrictions:
comment_part += f'(old {particle.min_occurs_old}, {particle.max_occurs_old})'
comment_part += f' (old {particle.min_occurs_old}, {particle.max_occurs_old})'

comment_parts.append(comment_part)