diff --git a/docs/source/index.rst b/docs/source/index.rst index 86182c7..40b8905 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -183,13 +183,13 @@ You can also render JavaScript pages without Requests: # ^^ proceeding from above ^^ >>> script = """ - () => { - return { - width: document.documentElement.clientWidth, - height: document.documentElement.clientHeight, - deviceScaleFactor: window.devicePixelRatio, + () => { + return { + width: document.documentElement.clientWidth, + height: document.documentElement.clientHeight, + deviceScaleFactor: window.devicePixelRatio, + } } - } """ >>> val = html.render(script=script, reload=False)