odoo/documentation#12269

Created by fw-bot
Merged at 0649bd3f5ad438250217d83824033d7e783b4af8

Statuses:

label
odoo-dev:saas-17.4-16.0-fix-tests-delimiter-anv-420633-fw
head
1bd4663fcaee8b1e55e17a7147beee5ab4f99ddf
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

[FW][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.

Forward-Port-Of: #12111