Steps to replicate the issue (include links if applicable):
- On a Wishlist page such as https://meta.wikimedia.org/wiki/Community_Wishlist/W402 follow the link "Support wish"
- Add a comment, ending it with a space character
What happens?:
The wish gets rejected: "Unable to parse wishlist vote. It may contain invalid wikitext. Please ensure there are no extraneous pipe characters in the wikitext."
Once the trailing space is removed, the support vote goes through.
Preciously reported at https://meta.wikimedia.org/wiki/Talk:Community_Wishlist#c-Ponor-20260207185200-Space_at_end_of_support_vote
Here is the refined output aligned with your requirements and bug documentation guidelines:
Derived Requirement
Ensure that a support vote submitted on a Community Wishlist page is successfully processed even if the user’s comment ends with a trailing space character.
- A trailing space at the end of the vote comment must not cause parsing failure.
- The vote must not be rejected due to whitespace-only formatting issues.
- Valid support votes must be accepted regardless of trailing whitespace.
Test Steps
Preconditions:
- User is logged in.
- A Community Wishlist page with a "Support wish" link exists (e.g., Community_Wishlist/W402).
- The wish is open for voting.
Test Case 1: Ensure vote succeeds when comment ends with trailing space
- Navigate to a Community Wishlist wish page.
- Click the "Support wish" link.
- Enter a valid support comment and intentionally add a space character at the end of the comment.
- Submit the vote.
- ✅❓❌⬜ AC1: The support vote is successfully posted and no parsing error message is displayed.
QA Results - Local
| AC | Status | Details |
|---|---|---|
| 1 | ❓ | T416794#11659707 |


