Skip to content

Commit

Permalink
Merge pull request #893 from szmenpro/doc-example-fix
Browse files Browse the repository at this point in the history
Docs: Fixed wrong nested list comprehension example
  • Loading branch information
liZe authored Jul 9, 2019
2 parents 80c5a82 + 008a5b3 commit 6f6b266
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 6f6b266

Please sign in to comment.