Open
Description
xref: quarto-dev/quarto-cli#8576
Bug description
I was told by @mcanouil here that I got my syntax wrong: quarto-dev/quarto-cli#8574 (reply in thread)
I was wondering how that happened and figured it out. If you use the correct syntax and then format your document in VSCode using the Quarto extension, it adds a space. Since it's a single space in what looks like a Python comment, it's a bit hard to notice.
Steps to reproduce
Create a cell in a Quarto document that has an option comment:
```{python}
#| panel: input
ui.input_text("species", "Species:", value="Gentoo")
```
use keybindings or right click to format document with -> choose Quarto:


click it, and a space appears!

Expected behavior
I would not expect formatting the cell w/ the Quarto extension in VSCode to create syntax errors
Actual behavior
formatting the cell w/ the Quarto extension in VSCode creates syntax errors
Your environment
- IDE: VSCode w/ Quarto extension
- computer: Mac
Quarto check output
Quarto 1.4.542
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.542
Path: /Applications/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Tex: (not detected)
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.11.7
Path: /Users/cody/repos/pypi-analytics/venv/bin/python3
Jupyter: 5.7.1
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.3.2
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
knitr: 1.45
rmarkdown: 2.25
[✓] Checking Knitr engine render......OK
Metadata
Metadata
Assignees
Labels
No labels