-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
tag: interpreterRelated to the Python interpreter configurationRelated to the Python interpreter configurationtype: featureNew feature or requestNew feature or request
Description
In the following example, pyscript is happy to automatically dedent one line, but only one line:
<html>
<head>
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
</head>
<body>
<h1>Demo of weird indentation error</h1>
<div id="output"></div>
<py-script output="output">
print("Hello from indented line 1")
print("Hello from indented line 2") # Comment out this line and it works
</py-script>
</body>
</html>
Of course I can just fully-dedent all my code for now, but it would be nice if my editor's automatic indenting just worked 😄
Metadata
Metadata
Assignees
Labels
tag: interpreterRelated to the Python interpreter configurationRelated to the Python interpreter configurationtype: featureNew feature or requestNew feature or request