Skip to content

Commit 369a059

Browse files
committed
revert partially copilot commit
1 parent 028a1ac commit 369a059

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/refinedoc/refined_document.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def __init__(self, content: list[list[str]], ratio_speed: int = 1, win: int = 8)
4343
raise ValueError(f"Speed must be between 1 and 3: {ratio_speed}")
4444

4545
self._processed_body: list[list[str]] = content # Initialize body field
46-
46+
if len(content) == 1:
47+
logger.warning(
4748
"The content provided has only one page. Headers and footers will be set to empty lists."
4849
)
4950
self._processed_headers = [[]]

0 commit comments

Comments
 (0)