File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def SCRIPTS(self): # pylint: disable=missing-function-docstring
4848 def remove_special_chars (string : str ) -> str :
4949 "Ensure string is valid HTML id."
5050 return string .translate (
51- {ord (c ): "_" for c in r"!@#$%^&*()[]{};,<>?\/:.|`~=_+" }
51+ {ord (c ): "_" for c in r"!@#$%^&*()[]{};,<>?\/:.|`~=_+ " }
5252 )
5353
5454 def generate_html (self , html_path = None ) -> str :
Original file line number Diff line number Diff line change 44
55
66def test_remove_special_characters ():
7- special_chars = r"!@#$%^&*()[]{};,<>?\/:.|`~=_+"
7+ special_chars = r"!@#$%^&*()[]{};,<>?\/:.|`~=_+ "
88 dirty = f"plot_name{ special_chars } "
99 assert Renderer .remove_special_chars (dirty ) == "plot_name" + "_" * len (
1010 special_chars
You can’t perform that action at this time.
0 commit comments