From dcb828f3a341a656f69aa54169c874da8cbc6e5c Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 28 Feb 2018 08:44:24 -0500 Subject: [PATCH] fix Signed-off-by: Kenneth Reitz --- docs/source/index.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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)