Skip to content

Conversation

d-ronnqvist
Copy link
Contributor

Cherry pick of #773

Explanation: Fix a bug where articles with whitespace in their filename couldn't be linked to by using "-" instead of sequences of whitespace characters in the written links.
Scope: Articles with whitespace in their filenames.
Issue: rdar://119577248
Risk: Low.
Testing: Added tests and ran the existing automated tests.
Reviewer: @sofiaromorales

Note that I made one additional commit 93b099d to update the added test to account for a feature that isn't cherry-picked into the 'release/5.10' branch but that exist on 'main' where #773 was originally merged.

* Replace spaces and punctuation with dashes in links to articles

rdar://119577248

* Add test that file name punctuation warn about reference collisions

* Update what punctuation is used in file names in new test

* Use simpler punctuation in file name in test for older Swift versions

* Only replace whitespaces with dashes (not punctuation)

* Move linkName function to only file where it has a reason to be used
@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist d-ronnqvist merged commit c47f599 into swiftlang:release/5.10 Jan 11, 2024
@d-ronnqvist d-ronnqvist deleted the links-to-article-with-spaces-5.10 branch January 11, 2024 11:45
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.

2 participants