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.
2 parents 83c5e8c + f5b24ee commit f248608Copy full SHA for f248608
1 file changed
source/speech/speech.py
@@ -2072,7 +2072,14 @@ def getControlFieldSpeech( # noqa: C901
2072
# #10095, #3321, #709: Report the name and description of groupings (such as fieldsets) and tab pages
2073
# #13307: report the label for landmarks and regions
2074
nameAndRole = nameSequence[:]
2075
- nameAndRole.extend(roleTextSequence)
+ if (
2076
+ role in (
2077
+ controlTypes.Role.LANDMARK,
2078
+ controlTypes.Role.REGION,
2079
+ )
2080
+ and config.conf["documentFormatting"]["reportLandmarks"]
2081
+ ):
2082
+ nameAndRole.extend(roleTextSequence)
2083
types.logBadSequenceTypes(nameAndRole)
2084
return nameAndRole
2085
elif (
0 commit comments