-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
rcsetup cleanups. #15894
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
rcsetup cleanups. #15894
Conversation
84b8b13
to
c97f510
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not 100% sure if deprecation of lists as preamble is necessary. Linebreaks matter in LaTeX. And it might(?) be more difficult if the preamble is all in one line.
Do they really?
You can always pass a multiline (triple quoted) string. |
16d3cef
to
4ea3c91
Compare
Well, whitespace matters (sometimes). A |
Note that this is also only supposed to be a TeX preamble, where the importance of whitespace is even less... (not nonexistent, but again, you can always pass in a multiline string if you really want). |
Not really sure I understand why you are deprecating a list of strings. Is there some advantage? |
In the syntax of rcsetup files (which is not particularly great, but whatever, it's what we have right now), "string lists" would mean "comma-separated strings", e.g. |
- Deprecate passing text.latex.unicode/pgf.preamble as None, "None", or a list of strings -- it's really just a plain string. - In validators that take "lists", disable passing sets/frozensets, which are unordered, but not dicts, which have deterministic iteration order now -- making the code consistent with the comment immediately above. - Correctly set `__name__` and `__qualname__` on some more validators, which helps e.g. troubleshooting test failures.
a list of strings -- it's really just a plain string.
which are unordered, but not dicts, which have deterministic iteration
order now -- making the code consistent with the comment immediately
above.
__name__
and__qualname__
on some more validators,which helps e.g. troubleshooting test failures.
PR Summary
PR Checklist