-
-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency between docs and behaviour concerning whitespace (pyparsing 2.4.7 -> 3.0 regression) #317
Comments
Might also be responsible for errors related to |
Can you send me examples of mathtext errors? They may be related, but they might be something else. |
Sure, sorry. A minimal example would be import matplotlib.pyplot as plt
plt.plot(range(5), '.')
plt.title(r"$x \cdot y$")
plt.show() which presently fails with Happy to create a separate issue if it's indeed not at all related. |
Yes, this looks different, please open a new issue. I'll have to chase down the mathtext parser code too. (I thought matplotlib used a vendored pyparsing though - maybe that changed recently.) |
I'm going to choose to support both behaviors in the next release (3.0.2). I will revert the handling of If you are modifying your parser code to handle this change for 3.0.0 by inserting a Sorry for springing this surprise on you. I think this finally gets LineStart where it should be. |
3.0.2 caused some other problems, please revisit after updating to 3.0.3. |
Have you been able to retry this with 3.0.3? |
@ptmcg I'm not at the office at the moment. I will give it a try as soon as I can. |
@ptmcg I can confirm that the issue is resolved in I tested 3.0.2, 3.0.3 and 3.0.4 |
That's great news! I'll go ahead and close this issue then. |
I ran into a regression in pyparsing 3.0.1 which broke one of our parsers. The change in behaviour was not listed in the changelog. So it's either a regression or an oversight in the changelog 😉
The following code worked in
pyparsing 2.4.7
but it fails inpyparsing 3.0.1
(note the leading whitespace):In order to fix the issue, the whitespace needed to be explicitly defined:
This is in conflict with the documentation, which states (emphasis mine):
See https://pyparsing-docs.readthedocs.io/en/latest/HowToUsePyparsing.html#basic-parserelement-subclasses
The text was updated successfully, but these errors were encountered: