Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Error: IndentationError: expected an indented block after function definition on line 1 #51

Closed
damiankrolik opened this issue Apr 5, 2024 · 1 comment

Comments

@damiankrolik
Copy link

Problem

While passing python code with indentation in markdown file - indentation is not passed - causing IndentationError:

example from md file

```python
def say_hello(name):
  print(f'Hello {name}')
say_hello('World')
```

is passed to terminal as:

python -c "def say_hello(name):
print(f'Hello {name}')
say_hello('World')
"

with no indentation - causing IndentationError.

HansKre pushed a commit that referenced this issue Aug 18, 2024
@HansKre
Copy link
Owner

HansKre commented Aug 18, 2024

Should be fixed in version 1.1.0

@HansKre HansKre closed this as completed Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants