Beispiel #1
0
def test_FmtPageBreak_no_break():
    fmt = pbtf.FmtPageBreak(no_break=True, repeat_header=False)
    res = fmt._create_table_level_css()
    assert 'page-break-inside:' in res
    assert 'avoid' in res
    res = fmt._create_thead_level_css()
    assert 'display:' in res
    assert 'table-row-group' in res
    res = fmt._create_row_level_css(None)
    assert 'page-break-inside:' in res
    assert 'avoid' in res
Beispiel #2
0
def test_FmtPageBreak_repeat_header():
    fmt = pbtf.FmtPageBreak(no_break=False, repeat_header=True)
    res = fmt._create_thead_level_css()
    assert 'display:' in res
    assert 'table-header-group' in res