-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
printing bug with list_function() #2584
Comments
comment:1
The bug is in the latex function:
|
comment:2
Actually, the bug is in the list_function in latex.py in the case where the list string is too long. I'll post a patch momentarily. |
Attachment: list-print-extra-comma.patch.gz |
comment:3
I believe the above patch works, but I'm still building 2.10.4, so I haven't tested it yet. |
comment:4
The patch fixes the problem. |
comment:5
Replying to @jasongrout:
While the patch looks like the fix to this problem shouldn't we also add a doctest that verifies that the bug has been fixed? Not to be pedantic ... well, I am :=) Great job Jason. Cheers, Michael |
Attachment: 2584.patch.gz |
comment:6
I added some doctests; only the last patch should be applied. Positive review from me. |
comment:7
Merged 2584.patch in Sage 2.11.alpha0 - thanks Mike for the doctest. |
comment:8
Thanks, Mike for adding the doctests. The reason I didn't add doctests to test this fix was that the bug was only manifest in the notebook (in EMBEDDED_MODE). However, I should have gone ahead and added doctests for the basic functionality anyway, even if they didn't test that the bug in question is fixed, just to get the doctest score up and do my part towards the 3.0 goals :) |
This causes a bug when printing:
Notice the extra ",". A list of one element doesn't have the same problem.
Component: graphics
Issue created by migration from https://trac.sagemath.org/ticket/2584
The text was updated successfully, but these errors were encountered: