Skip to content

Commit 2d82daf

Browse files
committed
avoid page_by - new page check
1 parent 50fbb66 commit 2d82daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rtflite/encoding/strategies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ def encode(self, document: "RTFDocument") -> str:
908908
# subline_by and page_by)
909909
if (
910910
is_single_body(document.rtf_body)
911-
and (document.rtf_body.subline_by or (document.rtf_body.page_by and document.rtf_body.new_page))
911+
and (document.rtf_body.subline_by or document.rtf_body.page_by)
912912
):
913913
original_cols = (
914914
list(document.df.columns)

0 commit comments

Comments
 (0)