quarto-dev / quarto-dev/quarto-cli
Too much escaping of backslashes from inline Python?
Open
@cscheid is already working on this.
Since Nov 4, 2024.
bug
early-in-release
engines-jupyter
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
when printing backslashes from inline Python they get escaped too often
Steps to reproduce
---
title: "Empty"
engine: jupyter
---
Backslash: `{python} "a\\b"` `{python} r"c\\d"`
Expected behavior
Expected output:
Backslash: a\b c\\d
Actual behavior
Actual output:
Backslash: a\\\\b c\\\\\\\\d
Your environment
$ nixos-version
24.05.20241012.a3f9ad6 (Uakari)
Quarto check output
quarto check
Quarto 99.9.9
[✓] Checking environment information...
Quarto cache location: ~/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.4.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.46.3: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 99.9.9
commit: 80bf6b5848bf644de3a4d59e26b5eb067375986a
Path: ~/quarto-cli/package/dist/bin
[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /run/current-system/sw/bin
Version: undefined
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.12.5
Path: ~/quarto-playground/.venv/bin/python3
Jupyter: 5.7.2
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........(None)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.