odoo/documentation#12111

Created by Sales, Antoine Vandevenne (anv)
Merged at e1a8a55c4f4f4a58eedb776b4d0a0f324b8a048a

Statuses:

label
odoo-dev:16.0-fix-tests-delimiter-anv
head
de10e7269ea008db99568db5ac7bdccf4db3687c
merged
4 months ago by Sales, Antoine Vandevenne (anv)
odoo/documentation
16.0 #12111
17.0 #12268
saas-17.4 #12269
18.0 #12270
saas-18.1 #12271
saas-18.2 #12272
saas-18.3
saas-18.4
master #12273

[FIX] tests: don't confuse separators for heading delimiters

[FIX] tests: don't confuse separators for heading delimiters

RST separators (-----) look similar to H3 delimiters that use the same - character, but separators' length should not be checked.


[FIX] tests: don't count EOL chars when checking remaining line space

This commit fixes a bug in the check_early_line_breaks test that would systematically consider the \n character as being part of the line, hence counting it when computing the line length.