mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-09-11 12:46:15 +03:00
Fix borders on inline boxes split by a block inside.
This commit is contained in:
parent
61c335766a
commit
d0a5a0b8f1
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,3 +7,4 @@
|
|||||||
/dist
|
/dist
|
||||||
/env
|
/env
|
||||||
/weasyprint/tests/test_results
|
/weasyprint/tests/test_results
|
||||||
|
/weasyprint/tests/w3_test_suite/test_results
|
||||||
|
@ -815,7 +815,8 @@ def _inner_block_in_inline(box, skip_stack=None):
|
|||||||
resume_at = None
|
resume_at = None
|
||||||
changed = False
|
changed = False
|
||||||
|
|
||||||
if skip_stack is None:
|
is_start = skip_stack is None
|
||||||
|
if is_start:
|
||||||
skip = 0
|
skip = 0
|
||||||
else:
|
else:
|
||||||
skip, skip_stack = skip_stack
|
skip, skip_stack = skip_stack
|
||||||
@ -845,11 +846,13 @@ def _inner_block_in_inline(box, skip_stack=None):
|
|||||||
new_children.append(new_child)
|
new_children.append(new_child)
|
||||||
if block_level_box is not None:
|
if block_level_box is not None:
|
||||||
resume_at = (index, resume_at)
|
resume_at = (index, resume_at)
|
||||||
box = box.copy_with_children(new_children)
|
box = box.copy_with_children(
|
||||||
|
new_children, is_start=is_start, is_end=False)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
if changed or skip:
|
if changed or skip:
|
||||||
box = box.copy_with_children(new_children)
|
box = box.copy_with_children(
|
||||||
|
new_children, is_start=is_start, is_end=True)
|
||||||
|
|
||||||
return box, block_level_box, resume_at
|
return box, block_level_box, resume_at
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user