From 078593855124e120f09a7a6693b194e8a4b1e012 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Thu, 4 Jan 2007 00:24:30 +0100 Subject: [PATCH] Accept '@' in sectionning commands scanned by texi-langutils.py Fixes disappearing of "@chapter @command{lilypond-book}: Integrating text and music" in lilypond-doc.pot and Texinfo generated skeleton --- buildscripts/texi-langutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildscripts/texi-langutils.py b/buildscripts/texi-langutils.py index 02b0ea36fa..8fc24187de 100644 --- a/buildscripts/texi-langutils.py +++ b/buildscripts/texi-langutils.py @@ -71,7 +71,7 @@ def process_texi (texifilename, i_blurb, n_blurb, write_skeleton, output_file=No g.write (i_blurb) tutu = re.findall (r"""^(\*) +([^: ]+)::[^ - ]*?$|^@(include|menu|end menu|node|(?:unnumbered|appendix)(?:(?:sub){0,2}sec)?|top|chapter|(?:sub){0,2}section|(?:major|chap|(?:sub){0,2})heading) *([^@ + ]*?$|^@(include|menu|end menu|node|(?:unnumbered|appendix)(?:(?:sub){0,2}sec)?|top|chapter|(?:sub){0,2}section|(?:major|chap|(?:sub){0,2})heading) *([^ ]*)[^ ]*?$|@(rglos){(.+?)}""", texifile, re.M) node_trigger = False @@ -96,7 +96,7 @@ def process_texi (texifilename, i_blurb, n_blurb, write_skeleton, output_file=No g.write (end_blurb) g.close () elif output_file: - toto = re.findall (r"""^@(include|node|(?:unnumbered|appendix)(?:(?:sub){0,2}sec)?|top|chapter|(?:sub){0,2}section|(?:major|chap|(?:sub){0,2})heading) *([^@ + toto = re.findall (r"""^@(include|node|(?:unnumbered|appendix)(?:(?:sub){0,2}sec)?|top|chapter|(?:sub){0,2}section|(?:major|chap|(?:sub){0,2})heading) *([^ ]*)[^ ]*?$|@(rglos){(.+?)}""", texifile, re.M) for item in toto: -- 2.39.5