NormalizeTags¶
Normalize tag names by normalizing case and removing duplicates.
Disabling the formatter
NormalizeTags is included in the default formatters, but it can be also run separately with:
You can also disable it:
Supported cases:
- lowercase (default),
- uppercase
- titlecase
You can configure a case using case parameter:
You can remove duplicates without normalizing a case by setting normalize_case parameter to False:
Preserve formatting¶
Tags formatting like new lines, separators or comments position will be lost when using NormalizeTags
formatter. You can preserve formatting by using preserve_format flag:
The downside is that the duplications will not be removed when preserve_format is enabled.