mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 00:21:15 +03:00
Update docs/tutorial.rst
Typo fixes in docs/tutorial.
This commit is contained in:
parent
6f56613441
commit
a36da2bcae
@ -39,14 +39,14 @@ The Python version of the above example goes like this:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from weasyprint import import HTML
|
||||
from weasyprint import HTML
|
||||
HTML('http://weasyprint.org/').write_pdf('/tmp/weasyprint-website.pdf')
|
||||
|
||||
… or with the inline stylesheet:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from weasyprint import import HTML, CSS
|
||||
from weasyprint import HTML, CSS
|
||||
HTML('http://weasyprint.org/').write_pdf('/tmp/weasyprint-website.pdf',
|
||||
stylesheets=[CSS(string='body { font-family: serif !important }')])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user