We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e40c7a4 commit 3471036Copy full SHA for 3471036
aws_doc_sdk_examples_tools/metadata_validator.py
@@ -165,7 +165,8 @@ def _validate_aws_entity_usage(value: str) -> bool:
165
Count all bare AWS occurrences overall.
166
If these counts differ, there's an invalid usage.
167
"""
168
- xtree = xml_tree.fromstring(f"<fake>{value.replace('&', '&')}</fake>")
+ xval = value.replace('&', '&')
169
+ xtree = xml_tree.fromstring(f"<fake><para>{xval}</para></fake>")
170
blocks = xtree.findall("programlisting") + xtree.findall("code") + xtree.findall("noloc")
171
aws_in_blocks = 0
172
for element in blocks:
0 commit comments