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

Failure of Rmd cell parsing with #''' in code cell #1060

Closed
matthew-brett opened this issue Apr 11, 2023 · 0 comments · Fixed by #1083
Closed

Failure of Rmd cell parsing with #''' in code cell #1060

matthew-brett opened this issue Apr 11, 2023 · 0 comments · Fixed by #1083

Comments

@matthew-brett
Copy link
Contributor

I ran into the following odd failure with current Jupytext (1.14.5). Consider the following .Rmd text:


```{python}
 #'''
```

```{python}
# Another cell
```

Notice the space before the first # above.

When converting to .ipynb, Jupytext does not separate the two cells. Deleting the leading space or one of the three single quotes fixes the conversion. There is no change in behavior for any amount of extra whitespace in front of the #. It doesn't appear to matter if there is any text before or after the '''.

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

Successfully merging a pull request may close this issue.

1 participant