Preparser is seriously broken!

64 views
Skip to first unread message

Andrey Novoseltsev

unread,
Aug 20, 2020, 5:54:52 PM8/20/20
to sage-devel
It interferes with multiline strings now!!!

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.2.beta9, Release Date: 2020-08-18               │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable.     ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
sage: html(r"""
....: $2 \leq x$
....: """)                                                                                                                                    

<script type="math/tex">Integer(2)  * BackslashOperator() * leq x</script>

sage: html(r"""$2 \leq x$""")                                                                                                                  
<script type="math/tex">2 \leq x</script>

Markus Wageringel

unread,
Aug 21, 2020, 4:27:38 PM8/21/20
to sage-devel
I have also noticed this problem. It seems to be caused by the upgrade to IPython 7 https://trac.sagemath.org/ticket/28197. I have opened https://trac.sagemath.org/ticket/30417 for this.
Reply all
Reply to author
Forward
0 new messages