mirror of
https://github.com/odoo/documentation.git
synced 2026-03-27 14:10:23 +07:00
[FIX] tests: catch early line breaks in substitutions
closes odoo/documentation#15970
X-original-commit: 69082eb35d
Signed-off-by: Niki Brown (nikbr) <nikbr@odoo.com>
Signed-off-by: Zachary Straub (zst) <zst@odoo.com>
This commit is contained in:
@@ -140,8 +140,8 @@ def check_early_line_breaks(file, lines, options=None):
|
||||
if lno + 1 < len(lines):
|
||||
next_line = lines[lno + 1]
|
||||
if (
|
||||
is_valid_line(line, ('+', '|'))
|
||||
and is_valid_line(next_line, ('+', '|', '- ', '* ', '#. '))
|
||||
is_valid_line(line, ('+', '| '))
|
||||
and is_valid_line(next_line, ('+', '| ', '- ', '* ', '#. '))
|
||||
):
|
||||
current_line_remaining_space = options.max_line_length - len(line.rstrip())
|
||||
next_line_first_word = get_next_line_first_word(next_line).rstrip()
|
||||
|
||||
Reference in New Issue
Block a user