fix(org_rw): Ensure closing delimiters are same subtype as openers.
Some checks failed
Testing / style-formatting (push) Waiting to run
Testing / style-sorted-imports (push) Waiting to run
Testing / stability-extra-test (push) Waiting to run
Testing / pytest (push) Successful in 25s
Testing / mypy (push) Has been cancelled

This commit is contained in:
Sergio Martínez Portela 2025-02-09 16:49:25 +01:00
parent 7375a69229
commit 24dc516d64

View File

@ -415,6 +415,7 @@ class Headline:
if ( if (
isinstance(line, DelimiterLine) isinstance(line, DelimiterLine)
and line.delimiter_type == DelimiterLineType.END_BLOCK and line.delimiter_type == DelimiterLineType.END_BLOCK
and line.type_data.subtype == current_node.header.type_data.subtype
): ):
start = current_node.header.linenum start = current_node.header.linenum