Skip to content

Commit

Permalink
Don't let & screw up the xml ascii encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
BSVino committed Aug 18, 2014
1 parent 3195036 commit 48bbd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def replace_alias(matchobj):

return "<a href='../" + version_dir + r"/" + command + "'>" + alias + "</a>"

code = re.sub(r"\{%([a-zA-Z_][a-zA-Z_0-9]*?)\}", replace_alias, code).replace("\t", " ")
code = re.sub(r"\{%([a-zA-Z_][a-zA-Z_0-9]*?)\}", replace_alias, code).replace("\t", " ").replace("&", "&amp;")

examples += "<div class='example'>"
examples += opengl.examples[example]['description']
Expand Down

0 comments on commit 48bbd5a

Please sign in to comment.