Skip to content

Commit

Permalink
speech.getformatFieldSpeech: Correct logic for heading levels which b…
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelDCurran authored Feb 3, 2021
1 parent 90dd4e9 commit 376780f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/speech/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2026,8 +2026,8 @@ def getFormatFieldSpeech( # noqa: C901
and (
initialFormat
and (reason == OutputReason.FOCUS or unit in (textInfos.UNIT_LINE, textInfos.UNIT_PARAGRAPH))
or headingLevel != oldHeadingLevel
)
or headingLevel != oldHeadingLevel
):
# Translators: Speaks the heading level (example output: heading level 2).
text=_("heading level %d")%headingLevel
Expand Down

0 comments on commit 376780f

Please sign in to comment.