odoo/documentation#12268

Created by fw-bot
Merged at a69a838df10d644b2edbf46ab39e936ed36529bc

Statuses:

label
odoo-dev:17.0-16.0-fix-tests-delimiter-anv-417190-fw
head
dd5ea27668c93419e6eb9c61180bfe33cbfb7791
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