* Ted Pavlic on Tuesday, September 02, 2008 at 16:57:36 -0400 > This is my SECOND time posting this message. I realize that I may have > posted the first one as a response to the incorrect thread, and so I'm > going to go ahead and post it as a new thread . . .
Then, besides changing the subject, it might even be better to actually not reply to the original (reply-to header) <-- insert big smiley here. > diff -ru old/outline.py new/outline.py > --- old/outline.py 2008-08-27 17:55:51.000000000 +0200 > +++ new/outline.py 2008-08-27 18:00:55.000000000 +0200 > @@ -23,7 +23,7 @@ > contents = '\n'.join(open(fname).read().splitlines()) > > # TODO what are all the ways in which a tex file can include another? > - pat = re.compile(r'^\\(@?)(include|input){(.*?)}', re.M) > + pat = re.compile(r'^\s*\\(@?)(include|input){(.*?)(.tex)?}', re.M) Perhaps make it non-greedy: pat = re.compile(r'^\s*?\\(@?)(include|input){(.*?)(.tex)?}', re.M) > contents = re.sub(pat, lambda input: getFileContents(input, ext), > contents) > > return ('%%==== FILENAME: %s' % fname) + '\n' + contents c -- Was heißt hier Dogma, ich bin Underdogma! [ What the hell do you mean dogma, I am underdogma. ] _F R E E_ _V I D E O S_ -->> http://www.blacktrash.org/underdogma/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel