Skip to content

Commit 2236404

Browse files
committed
Don't allow r"$\left\\|\right.$", as in TeX.
AFAICT, (incorrect) support for the double-backslashed version was accidentally introduced in 027dd2c.
1 parent d0bef3b commit 2236404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/_mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,7 @@ class _MathStyle(enum.Enum):
16801680

16811681
_ambi_delim = set(r"""
16821682
| \| / \backslash \uparrow \downarrow \updownarrow \Uparrow
1683-
\Downarrow \Updownarrow . \vert \Vert \\|""".split())
1683+
\Downarrow \Updownarrow . \vert \Vert""".split())
16841684

16851685
_left_delim = set(r"( [ \{ < \lfloor \langle \lceil".split())
16861686

0 commit comments

Comments
 (0)