Skip to content

Commit

Permalink
Add trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbudd committed Aug 1, 2024
1 parent b9ebcbf commit be112ed
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/NVDAObjects/IAccessible/winword.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def script_caret_moveByCell(self, gesture: inputCore.InputGesture) -> None:
description=_(
# Translators: a description for a script
"Reports the text of the comment where the system caret is located."
"If pressed twice, presents the information in browse mode."
"If pressed twice, presents the information in browse mode.",
),
gesture="kb:NVDA+alt+c",
category=SCRCAT_SYSTEMCARET,
Expand Down
9 changes: 7 additions & 2 deletions source/NVDAObjects/UIA/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ def _getFormatFieldFontAttributes(self, fetch: Callable[[int], int], formatField
formatField["strikethrough"] = bool(val)

def _getFormatFieldSuperscriptsAndSubscripts(
self, fetch: Callable[[int], int], formatField: textInfos.FormatField
self,
fetch: Callable[[int], int],
formatField: textInfos.FormatField,
):
textPosition = None
val = fetch(UIAHandler.UIA_IsSuperscriptAttributeId)
Expand Down Expand Up @@ -300,7 +302,10 @@ def _getFormatFieldHeadings(self, fetch: Callable[[int], int], formatField: text
formatField["heading-level"] = (styleIDValue - UIAHandler.StyleId_Heading1) + 1

def _getFormatFieldAnnotationTypes(
self, fetch: Callable[[int], int], formatField: textInfos.FormatField, formatConfig: Dict
self,
fetch: Callable[[int], int],
formatField: textInfos.FormatField,
formatConfig: Dict,
):
annotationTypes = fetch(UIAHandler.UIA_AnnotationTypesAttributeId)
# Some UIA implementations return a single value rather than a tuple.
Expand Down
3 changes: 2 additions & 1 deletion source/NVDAObjects/window/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,8 @@ def _get_positionInfo(self):
@script(
description=_(
# Translators: the description for a script for Excel
"Reports the note on the current cell. If pressed twice, presents the information in browse mode"
"Reports the note on the current cell. "
"If pressed twice, presents the information in browse mode",
),
gesture="kb:NVDA+alt+c",
category=SCRCAT_SYSTEMCARET,
Expand Down
2 changes: 1 addition & 1 deletion source/globalCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def script_toggleReportFontSize(self, gesture):
@script(
description=_(
# Translators: Input help mode message for toggle report font attributes command.
"Cycles font attribute reporting between speech, braille, speech and braille, and off."
"Cycles font attribute reporting between speech, braille, speech and braille, and off.",
),
category=SCRCAT_DOCUMENTFORMATTING,
)
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,8 @@ def test_defaultProfile_reportFontAttributes_true(self):
upgradeConfigFrom_11_to_12(profile)
self.assertEqual(profile["documentFormatting"]["reportFontAttributes"], "True")
self.assertEqual(
profile["documentFormatting"]["fontAttributeReporting"], OutputMode.SPEECH_AND_BRAILLE.value
profile["documentFormatting"]["fontAttributeReporting"],
OutputMode.SPEECH_AND_BRAILLE.value,
)

def test_defaultProfile_reportFontAttributes_invalid(self):
Expand Down

0 comments on commit be112ed

Please sign in to comment.