File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ def get_filled_template(
8181 f"Template '{ self .template .name } ' "
8282 f"is not using '{ anchor } ' anchor"
8383 )
84- else :
84+ elif name in { "x" , "y" } :
8585 value = self .template .escape_special_characters (value )
8686 content = self .template .fill_anchor (content , name , value )
8787
Original file line number Diff line number Diff line change @@ -173,6 +173,6 @@ def test_escape_special_characters():
173173 assert filled ["data" ]["values" ][0 ] == datapoints [0 ]
174174 # field and title yes
175175 assert filled ["encoding" ]["x" ]["field" ] == "foo\\ .bar\\ [0\\ ]"
176- assert filled ["encoding" ]["x" ]["title" ] == "foo\\ .bar\\ [0 \\ ]"
176+ assert filled ["encoding" ]["x" ]["title" ] == "foo.bar[0 ]"
177177 assert filled ["encoding" ]["y" ]["field" ] == "foo\\ .bar\\ [1\\ ]"
178- assert filled ["encoding" ]["y" ]["title" ] == "foo\\ .bar\\ [1 \\ ]"
178+ assert filled ["encoding" ]["y" ]["title" ] == "foo.bar[1 ]"
You can’t perform that action at this time.
0 commit comments