diff --git a/oelint_adv/rule_base/rule_var_multilineindent.py b/oelint_adv/rule_base/rule_var_multilineindent.py index a12be34..ba101c0 100644 --- a/oelint_adv/rule_base/rule_var_multilineindent.py +++ b/oelint_adv/rule_base/rule_var_multilineindent.py @@ -16,6 +16,8 @@ def __init__(self) -> None: def __line_stats(self, raw: str, name: str, op: str) -> Tuple[int, List[str]]: _map = {} + raw = raw.replace('\x1b"', '"') + first_line_determines_indent = False # If the first line already has non-whitespace content, determine the alignment relative to the # first quotation mark. diff --git a/tests/test_class_oelint_vars_multilineident.py b/tests/test_class_oelint_vars_multilineident.py index cadf21d..c218cff 100644 --- a/tests/test_class_oelint_vars_multilineident.py +++ b/tests/test_class_oelint_vars_multilineident.py @@ -179,6 +179,14 @@ def test_bad_two(self, input_, id_, occurrence): " ''', }, + { + 'oelint_adv_test.bb': + ''' + A = "\\ + some \\"quoted\\" value \\ + " + ''', + }, ], ) def test_good(self, input_, id_, occurrence):