Update 0.4.0
Python application / build (push) Has been cancelled

- Add\Rework UI
- Add Split Table and Listing
- Add Support Customazeble schems
This commit is contained in:
Igor20264
2026-09-04 22:28:39 +03:00
parent 516abe7b83
commit b38661f588
70 changed files with 69532 additions and 413 deletions
+3 -3
View File
@@ -157,14 +157,14 @@ def test_checker_merge_ok():
def test_table_continuation_modes():
from md2gost.profiles import TABLE_CONTINUATION_MODES, DEFAULT_TABLE_CONTINUATION
assert DEFAULT_TABLE_CONTINUATION == "off"
assert TABLE_CONTINUATION_MODES == ("off", "legacy", "caption", "soft")
assert DEFAULT_TABLE_CONTINUATION == "word"
assert TABLE_CONTINUATION_MODES == ("off", "legacy", "caption", "soft", "word")
doc = Document(os.path.join(package_dir(), "Template.docx"))
from md2gost.renderable.table import Table as RTable
from md2gost.renderable.caption import CaptionInfo
t = RTable(doc._body, 1, 2, CaptionInfo("x", "y"))
assert t._continuation_mode == "off"
assert t._continuation_mode == "word"
t.set_continuation_mode("legacy")
assert t._continuation_mode == "legacy"
t.set_continuation_mode("caption")