fix: preserve nested Word structures and synchronize valid font families

This commit is contained in:
2026-11-05 21:54:52 +08:00
parent 0e072eed3b
commit 7f81c2015e
12 changed files with 292 additions and 28 deletions
+2 -1
View File
@@ -93,7 +93,8 @@ def test_quoted_list_keeps_additive_nested_indents(tmp_path, engine):
text=''.join(p.itertext())
if text in ('Outer','Inner'):
ind=p.find('w:pPr/w:ind',NS)
assert int(ind.get(W+'left'))/20 == (36 if text=='Outer' else 72)
# Include the quote container's 12 pt padding and 3 pt border.
assert int(ind.get(W+'left'))/20 == (51 if text=='Outer' else 87)
assert ind.get(W+'hangingChars','0')=='0'