- Add\Rework UI - Add Split Table and Listing - Add Support Customazeble schems
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user