From 008a5b37428953e65cd6905e8e3be85d6f0626e4 Mon Sep 17 00:00:00 2001 From: Szmen Date: Tue, 9 Jul 2019 00:06:19 +0200 Subject: [PATCH] Docs: Fixed wrong nested list comprehension example --- weasyprint/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weasyprint/document.py b/weasyprint/document.py index 4dff0b94c..5c2a6a6d9 100644 --- a/weasyprint/document.py +++ b/weasyprint/document.py @@ -423,7 +423,7 @@ def copy(self, pages='all'): Combine multiple documents into one PDF file, using metadata from the first:: - all_pages = [p for p in doc.pages for doc in documents] + all_pages = [p for doc in documents for p in doc.pages] documents[0].copy(all_pages).write_pdf('combined.pdf') """