We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2730be commit 13f2d21Copy full SHA for 13f2d21
1 file changed
lib/matplotlib/backends/backend_pgf.py
@@ -155,6 +155,8 @@ def _metadata_to_str(key, value):
155
else:
156
value = str(value)
157
158
+ # ensure that metadata does not contain special TeX chars because we
159
+ # insert the metadata as raw text into the TeX source
160
invalid_chars = r"\{}[]()"
161
if any(c in value + key for c in invalid_chars):
162
raise ValueError(
0 commit comments