]> git.donarmstrong.com Git - lilypond.git/commitdiff
Docs: hack HTML regexp again
authorJohn Mandereau <john.mandereau@gmail.com>
Sat, 6 Dec 2008 13:29:45 +0000 (14:29 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Sat, 6 Dec 2008 13:29:45 +0000 (14:29 +0100)
buildscripts/html-gettext.py

index 6920e50d2232ae679234b40ddbefb66f266ad89d..ccfe6937c0316ec354e2116239475338951a719d 100644 (file)
@@ -83,9 +83,10 @@ def texi2html_title_gettext (m):
     return '<title>' + _ (m.group (1)) + double_punct_char_separator + ': ' \
         + m.group (2) + _ (m.group (3)) + '</title>'
 
-a_href_re = re.compile ('(?s)<a (?P<attributes>[^>]*?href="[\\w.#-_]+"[^>]*>)(?P<code><code>)?\
-(?P<appendix>Appendix )?(?P<leading>[A-Z0-9.]+ | (?:&lt;){1,2} |&nbsp;[^:]+?:&nbsp;|&nbsp;|)\
-(?P<name>.+?)(?P<end_code>(?(code)</code>|))(?P<trailing>| (?:&gt;){1,2} |&nbsp;|)</a>:?')
+a_href_re = re.compile ('(?s)<a (?P<attributes>[^>]*?href="[\\w.#-_]+"[^>]*?>)(?P<code><code>)?\
+(?P<appendix>Appendix )?(?P<leading>[A-Z0-9.]+ | (?:&lt;){1,2} |&nbsp;[^>:]+?:&nbsp;|&nbsp;|)\
+(?P<name>(?:<samp><span class="command">|</?code>|</span>|[^>])+?)(?P<end_code>(?(code)</code>|))\
+(?P<trailing> (?:&gt;){1,2} |&nbsp;|)</a>:?')
 
 def a_href_gettext (m):
     s = ''