Test document 2 fails WCAG 1.3.1 test 2 (Space characters are used for formatting purpose). This is technically correct. There are no false positives: the test correctly identifies places where spaces have no function and line breaks are used to create vertical space.
However, you dould argue that it's a bit over the top to generate an error for a single or double space directly after a full stop. It's true that this is bad practice, but it generates a lot of errors which are not considered very important by people who use screen readers (which usually ignore spaces after a full stop).
My proposal for implementing this test would be:
- Ignore single or double spaces directly after a full stop. Do not generate an error in this case.
- Generate errors for 3 or more consecutive spaces.
- Generate errors for repeated line breaks following empty lines, or lines with only spaces.
Test document 2 fails WCAG 1.3.1 test 2 (Space characters are used for formatting purpose). This is technically correct. There are no false positives: the test correctly identifies places where spaces have no function and line breaks are used to create vertical space.
However, you dould argue that it's a bit over the top to generate an error for a single or double space directly after a full stop. It's true that this is bad practice, but it generates a lot of errors which are not considered very important by people who use screen readers (which usually ignore spaces after a full stop).
My proposal for implementing this test would be: