]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/auxiliar/postprocess_html.py
Fix #778
[lilypond.git] / python / auxiliar / postprocess_html.py
index e94da797559b224694a7caae817408310f9b0d4d..15fcbbec10b7f1992df208ba059c2f0097bd6b57 100644 (file)
@@ -63,7 +63,7 @@ browser_language_url = "/web/about/browser-language"
 LANGUAGES_TEMPLATE = '''
 <p id="languages">
  %(language_available)s
- <br/>
+ <br>
  %(browser_language)s
 </p>
 '''
@@ -123,7 +123,7 @@ def hack_urls (s, prefix):
         rel_link = re.sub (r'out-www/.*$', '', prefix)
         rel_link = re.sub (r'[^/]*/', '../', rel_link)
         if 'input/regression' in prefix:
-            indexfile = "Documentation/devel"
+            indexfile = "Documentation/devel/index"
         else:
             indexfile = "index"
         s = docindex_link_re.sub ('href="' + rel_link + indexfile + '.html\"', s)
@@ -242,7 +242,8 @@ def process_links (s, prefix, lang_ext, file_name, missing, target):
         # in LANG doc index: don't rewrite .html suffixes
         # as not all .LANG.html pages exist;
         # the doc index should be translated and contain links with the right suffixes
-        if prefix == 'Documentation/out-www/index':
+        # idem for NEWS
+        if prefix in ('Documentation/out-www/index', 'Documentation/topdocs/out-www/NEWS'):
             page_flavors[file_name] = [lang_ext, s]
         elif lang_ext == '':
             page_flavors[file_name] = [lang_ext, s]