odoo/documentation#12270

Created by fw-bot
Merged at 9f421b7144537fc2618343b390ef07e44631317d

Statuses:

label
odoo-dev:18.0-16.0-fix-tests-delimiter-anv-420638-fw
head
276d7d07264ca18135bbac791ba6d8fddc59e2f4
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