Skip to content

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

Merged
felixfontein merged 4 commits into
ansible-community:mainfrom
felixfontein:labels
Apr 28, 2022
Merged

Normalize RST labels to remove duplicates (for one option)#7
felixfontein merged 4 commits into
ansible-community:mainfrom
felixfontein:labels

Conversation

@felixfontein

Copy link
Copy Markdown
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.)

@briantist briantist 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.

(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
Copy Markdown
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