@@ -2389,15 +2389,22 @@ def makeSettings(self, settingsSizer):
23892389 self .lineIndentationCombo
23902390 )
23912391 self .lineIndentationCombo .SetSelection (config .conf ['documentFormatting' ]['reportLineIndentation' ])
2392+
2393+ # Translators: This is the label of a checkbox in the document formatting settings panel
2394+ # If this option is selected, NVDA will ignore blank lines for line indentation reporting
2395+ ignoreBlankLinesText = _ ("Ignore &blank lines for line indentation reporting" )
2396+ ignoreBlankLinesCheckBox = wx .CheckBox (pageAndSpaceBox , label = ignoreBlankLinesText )
2397+ self .ignoreBlankLinesForReportLineIndentationCheckbox = pageAndSpaceGroup .addItem (ignoreBlankLinesCheckBox )
2398+ self .ignoreBlankLinesForReportLineIndentationCheckbox .SetValue (config .conf ["documentFormatting" ]["ignoreBlankLinesForReportLineIndentation" ])
23922399
2393- # Translators: This message is presented in the document formatting settings panelue
2400+ # Translators: This message is presented in the document formatting settings panel
23942401 # If this option is selected, NVDA will report paragraph indentation if available.
23952402 paragraphIndentationText = _ ("&Paragraph indentation" )
23962403 _paragraphIndentationCheckBox = wx .CheckBox (pageAndSpaceBox , label = paragraphIndentationText )
23972404 self .paragraphIndentationCheckBox = pageAndSpaceGroup .addItem (_paragraphIndentationCheckBox )
23982405 self .paragraphIndentationCheckBox .SetValue (config .conf ["documentFormatting" ]["reportParagraphIndentation" ])
23992406
2400- # Translators: This message is presented in the document formatting settings panelue
2407+ # Translators: This message is presented in the document formatting settings panel
24012408 # If this option is selected, NVDA will report line spacing if available.
24022409 lineSpacingText = _ ("&Line spacing" )
24032410 _lineSpacingCheckBox = wx .CheckBox (pageAndSpaceBox , label = lineSpacingText )
@@ -2541,6 +2548,7 @@ def onSave(self):
25412548 config .conf ["documentFormatting" ]["reportPage" ]= self .pageCheckBox .IsChecked ()
25422549 config .conf ["documentFormatting" ]["reportLineNumber" ]= self .lineNumberCheckBox .IsChecked ()
25432550 config .conf ["documentFormatting" ]["reportLineIndentation" ] = self .lineIndentationCombo .GetSelection ()
2551+ config .conf ["documentFormatting" ]["ignoreBlankLinesForReportLineIndentation" ]= self .ignoreBlankLinesForReportLineIndentationCheckbox .IsChecked ()
25442552 config .conf ["documentFormatting" ]["reportParagraphIndentation" ]= self .paragraphIndentationCheckBox .IsChecked ()
25452553 config .conf ["documentFormatting" ]["reportLineSpacing" ]= self .lineSpacingCheckBox .IsChecked ()
25462554 config .conf ["documentFormatting" ]["reportTables" ]= self .tablesCheckBox .IsChecked ()
0 commit comments