odoo/documentation#12273

Created by fw-bot
Merged at 953a8eab50c88a2b5821ccf9e5aa17dd6cc7a9fc

Statuses:

label
odoo-dev:master-16.0-fix-tests-delimiter-anv-420655-fw
head
86b2b0e378099c12f1db532c01521c982be47bb6
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