Skip to content

Commit

Permalink
support EXAMPLE: / NOTE:
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Mar 6, 2020
1 parent 7977cf1 commit bed8b36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions convert-policy.py
Expand Up @@ -104,6 +104,8 @@ def main():

final_policy_html = template.replace("@POLICY_GOES_HERE@", policy_html)
final_policy_html = final_policy_html.replace("@TITLE_GOES_HERE@", title)
final_policy_html = final_policy_html.replace("<p>EXAMPLE: ", "<p class=\"example\">")
final_policy_html = final_policy_html.replace("<p>NOTE: ", "<p class=\"note\">")

codecs.open("whatwg.org/" + link, "w", encoding="utf-8").write(final_policy_html)

Expand Down

0 comments on commit bed8b36

Please sign in to comment.