X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=buildscripts%2Fextract_texi_filenames.py;h=c85a18fb22a06eac284dc2bc3f545f9f313e7616;hb=164e8f28f50194a13c1f16de4b8279a17ced424d;hp=6b89954b256f89c6ce7564f523c1d6323191bf59;hpb=cb2a453c1957c882e2941de7eaccc351a8cf6d3b;p=lilypond.git diff --git a/buildscripts/extract_texi_filenames.py b/buildscripts/extract_texi_filenames.py index 6b89954b25..c85a18fb22 100755 --- a/buildscripts/extract_texi_filenames.py +++ b/buildscripts/extract_texi_filenames.py @@ -41,7 +41,7 @@ if not os.path.isdir (outdir): 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) (.*?)\s*\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*$', re.MULTILINE) def expand_includes (m, filename): filepath = os.path.join (os.path.dirname (filename), m.group(1)) + '.texi'