Skip to content

Discard empty fields in component titles - #111

Merged
Nealium104 merged 1 commit into
mainfrom
110-remove-extra-punctuation-in-title-fields
Oct 9, 2026
Merged

Nealium104 merged 1 commit into
mainfrom
110-remove-extra-punctuation-in-title-fields

Conversation

@Nealium104

Copy link
Copy Markdown
Contributor

This PR removes any extra commas that show up in component titles when a field is present but empty.

Changes

  • Skips empty pieces in Component::title() so an empty <unittitle/> or <unitdate/> no longer leaves a comma during the implode step
  • Removes a redundant if/else in the same method
  • Adds tests/ComponentTest.php with regression tests

Fixes #110

@Nealium104
Nealium104 requested a review from a team as a code owner October 9, 2026 15:38
@Nealium104 Nealium104 changed the title discard empty fields in title(); add regression test Discard empty fields in component titles Oct 9, 2026

@nrsa222 nrsa222 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks straight forward to me.

@Nealium104
Nealium104 merged commit 07750ed into main Oct 9, 2026
3 checks passed
@Nealium104
Nealium104 deleted the 110-remove-extra-punctuation-in-title-fields branch October 9, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove extra Punctuation in title fields

2 participants