Skip to content

Commit

Permalink
Docs: Fixed wrong nested list comprehension example
Browse files Browse the repository at this point in the history
  • Loading branch information
simonz86 committed Jul 8, 2019
1 parent 80c5a82 commit 008a5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyprint/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
"""
Expand Down

0 comments on commit 008a5b3

Please sign in to comment.