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

Normalize RST labels to remove duplicates (for one option) #7

Merged
merged 4 commits into from
Apr 28, 2022

Conversation

felixfontein
Copy link
Collaborator

docutils normalizes labels to targets by making them lowercase and normalizing whitespace. We do this for all labels for an option to avoid collisions. (You can still have collisions if you have two distinct options that differ by case, for example.)

Copy link
Contributor

@briantist briantist left a comment

Choose a reason for hiding this comment

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

(as discussed in IRC) I would just add the reasoning for the urlencode change to changelog, otherwise this is great!

Context for other readers: https://docs.ansible.com/ansible/latest/collections/amazon/aws/aws_s3_module.html#parameter-s3_url

This module has an option with an alias that differs only in case, while RST treats labels as case insensitive, so it results in a duplicate which cases a warning.

@felixfontein felixfontein merged commit 05e016a into ansible-community:main Apr 28, 2022
@felixfontein felixfontein deleted the labels branch April 28, 2022 05:31
@felixfontein
Copy link
Collaborator Author

@briantist thanks for reviewing!

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