From 2236404853792e55355244ea79073c55218c96dc Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sat, 11 Jun 2022 15:25:31 +0200 Subject: [PATCH] Don't allow `r"$\left\\|\right.$"`, as in TeX. AFAICT, (incorrect) support for the double-backslashed version was accidentally introduced in 027dd2c. --- lib/matplotlib/_mathtext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/_mathtext.py b/lib/matplotlib/_mathtext.py index cf2717119b7e..79f8e1a1d3b5 100644 --- a/lib/matplotlib/_mathtext.py +++ b/lib/matplotlib/_mathtext.py @@ -1680,7 +1680,7 @@ class _MathStyle(enum.Enum): _ambi_delim = set(r""" | \| / \backslash \uparrow \downarrow \updownarrow \Uparrow - \Downarrow \Updownarrow . \vert \Vert \\|""".split()) + \Downarrow \Updownarrow . \vert \Vert""".split()) _left_delim = set(r"( [ \{ < \lfloor \langle \lceil".split())