Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76ee0ef

Browse files
authored
Merge pull request #21633 from meeseeksmachine/auto-backport-of-pr-21501-on-v3.5.x
Backport PR #21501 on branch v3.5.x (Refix for pyparsing compat.)
2 parents 532f424 + 03041da commit 76ee0ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/_mathtext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from pyparsing import (
1616
Combine, Empty, Forward, Group, Literal, oneOf, OneOrMore,
1717
Optional, ParseBaseException, ParseFatalException, ParserElement,
18-
ParseResults, QuotedString, Regex, StringEnd, Suppress, ZeroOrMore)
18+
ParseResults, QuotedString, Regex, StringEnd, Suppress, White, ZeroOrMore)
1919

2020
import matplotlib as mpl
2121
from . import _api, cbook
@@ -2058,6 +2058,7 @@ def __init__(self):
20582058
p.accent <<= Group(
20592059
Suppress(p.bslash)
20602060
+ oneOf([*self._accent_map, *self._wide_accents])
2061+
+ Suppress(Optional(White()))
20612062
- p.placeable
20622063
)
20632064

0 commit comments

Comments
 (0)