]> git.donarmstrong.com Git - lilypond.git/commitdiff
texi2html: Remove trailing whitespaces from node names
authorReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 4 Aug 2008 17:57:08 +0000 (19:57 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 4 Aug 2008 17:57:08 +0000 (19:57 +0200)
buildscripts/extract_texi_filenames.py

index f074436e05ce0a49d1cfa9eb081a0ae933285b01..e93dc2317de59e8eae139ae9980825cfc51c100b 100755 (executable)
@@ -37,7 +37,7 @@ for x in optlist:
 
 include_re = re.compile (r'@include ((?!../lily-).*?)\.texi$', re.M)
 whitespaces = re.compile (r'\s+')
-section_translation_re = re.compile (r'@(node|(?:unnumbered|appendix)(?:(?:sub){0,2}sec)?|top|chapter|(?:sub){0,2}section|(?:major|chap|(?:sub){0,2})heading|translationof) (.*?)\n')
+section_translation_re = re.compile (r'@(node|(?:unnumbered|appendix)(?:(?:sub){0,2}sec)?|top|chapter|(?:sub){0,2}section|(?:major|chap|(?:sub){0,2})heading|translationof) (.*?)\s*\n')
 
 def expand_includes (m, filename):
     filepath = os.path.join (os.path.dirname (filename), m.group(1)) + '.texi'