Support quoted strings in matplotlibrc#22589
Conversation
|
I guess it's OK to not support single quotes or backslash escapes (I'm less sure wrt double quotes in the string, which seem unsupported too?), but the difference with standard python syntax should probably be explicitly noted. |
|
I am 👍🏻 on this in principle, but something seems wrong with the rcparams parsing. |
88b4a0d to
fc41ba4
Compare
|
Ha! Edge case when the line starts with a comment. Tests should pass now. |
I indeed plan to supporting backslash escapes soon. |
This enables using the comment character # within strings. Closes matplotlib#19288. Superseeds matplotlib#22565.
fc41ba4 to
7c378a8
Compare
tacaswell
left a comment
There was a problem hiding this comment.
Lets not hold this on other improvements (like single quotes and escaping).
This enables using the comment character # within strings. Also it lets you write hex colors more consistently as "#FFFFFF" rather than FFFFFF (i.e. omitting the hash). We discourage the latter but keep it for backward compatibility.
Closes #19288.
Superseeds #22565.