Skip to content

Commit

Permalink
Merge pull request #25540 from GiudGiud/PR_tag2
Browse files Browse the repository at this point in the history
Allow spaces in tags
  • Loading branch information
cticenhour authored Sep 21, 2023
2 parents 20e44f7 + 1f1622c commit 81a54cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/MooseDocs/extensions/tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ def postExecute(self):
for entry in key_list_regex:
regex_replace=f"'{entry}':"
tag_dict_str=re.sub(regex_replace,entry+':', tag_dict_str)
tag_dict_str=re.sub("\s","", tag_dict_str)
tag_dict_str=re.sub("'",'"', tag_dict_str)
# Downstream js cannot handle double quotes
tag_dict_str=re.sub("\"\"",'"', tag_dict_str)
if len(replace_str) == 0:
replace_str += tag_dict_str
else:
Expand Down

0 comments on commit 81a54cc

Please sign in to comment.