Skip to content

Commit 9ea0de6

Browse files
committed
confluence-mdx: fix clean container reconstruction after rebase
1 parent 4a4993d commit 9ea0de6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

confluence-mdx/bin/reverse_sync/reconstructors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ def reconstruct_container_fragment(
488488
emitted_body = _find_container_body(emitted_root)
489489
if emitted_body is None:
490490
return new_fragment
491+
emitted_children = [c for c in emitted_body.children if isinstance(c, Tag)]
491492

492493
template_fragment = sidecar_block.xhtml_fragment or new_fragment
493494
template_soup = BeautifulSoup(template_fragment, 'html.parser')
@@ -531,7 +532,6 @@ def reconstruct_container_fragment(
531532

532533
# 각 child 재구성
533534
rebuilt_fragments = []
534-
emitted_children = [c for c in emitted_body.children if isinstance(c, Tag)]
535535
for i, child_tag in enumerate(emitted_children):
536536
if i >= len(children_meta):
537537
rebuilt_fragments.append(str(child_tag))

0 commit comments

Comments
 (0)