Describe the bug
When using the %%pretty magic command in Jupyter Notebook, strings containing two consecutive plus signs (++) are not displayed. Spark reads and filters the data correctly, but %%pretty fails to render these strings
To Reproduce
Start a Jupyter Notebook with SparkMagic. Run the following code:
%%pretty
spark.createDataset(Seq("abc++def", "normalString")).toDF("c").show(false)
Screenshots
result with ++

result with +

result without %%pretty

Versions:
- SparkMagic — 0.23.0
- Livy (if you know it)
- Spark — 3.5.1 / 3.3.0
- PySpark — 3.5.1 / 3.3.0
Additional context
The problem seems to be in %%pretty rendering logic. Single + or other characters work fine, the problem appears only with ++
Describe the bug
When using the %%pretty magic command in Jupyter Notebook, strings containing two consecutive plus signs (++) are not displayed. Spark reads and filters the data correctly, but %%pretty fails to render these strings
To Reproduce
Start a Jupyter Notebook with SparkMagic. Run the following code:
Screenshots

result with ++
result with +

result without %%pretty

Versions:
Additional context
The problem seems to be in %%pretty rendering logic. Single + or other characters work fine, the problem appears only with ++