X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fauxiliar%2Fpostprocess_html.py;fp=python%2Fauxiliar%2Fpostprocess_html.py;h=8453c147b2d80a6b1b328adff5d18eba4597d80d;hb=2f1263e2ccdddcac2eb9f7d8ce2ed92867d3d160;hp=70afde80dcf8278e901cfda710109ed6d3ffbfa0;hpb=84ad4d280942a37859d45c8fce9d52dd34c10972;p=lilypond.git diff --git a/python/auxiliar/postprocess_html.py b/python/auxiliar/postprocess_html.py index 70afde80dc..8453c147b2 100644 --- a/python/auxiliar/postprocess_html.py +++ b/python/auxiliar/postprocess_html.py @@ -6,6 +6,7 @@ add footer, tweak links, add language selection menu. """ import re import os +import sys import time import operator @@ -38,19 +39,21 @@ header = r""" footer = ''' -''' +''' % sys.argv[0] web_footer = ''' -''' +''' % sys.argv[0] footer_name_version = _doc ('This page is for %(package_name)s-%(package_version)s (%(branch_str)s).') # ugh, must not have "_doc" in strings because it is naively replaced with "_" in hacked gettext process @@ -72,11 +75,12 @@ browser_language_url = "http://www.lilypond.org/website/misc/browser-language" LANGUAGES_TEMPLATE = '''

- %(language_available)s + + %%(language_available)s
- %(browser_language)s + %%(browser_language)s

-''' +''' % sys.argv[0] html_re = re.compile ('(.*?)(?:[.]([^/.]*))?[.]html$')