From: <eng...@ss...> - 2003-03-14 16:04:51
|
On Thu, 13 Mar 2003, David Abrahams wrote: > David Abrahams <da...@bo...> writes: > > > > > Sorry, I'm having a hard time understanding anything you're saying > > here, but latex just got much worse for our application, since we > > have curly braces in our literal blocks. Lines like this don't work > > out too well: > > > > \mbox{}} > > OK, I fixed a lot of bugs; here is the patch thanks a lot. you were a little greedy, this one:: text = re.sub(r'[^{][\\]', r'{\textbackslash}', text) will replace any the backslash AND the preceeding character (except for a brace). AND there need to be two backslashes. i commited to cvs. cheers -- BINGO: Wie gehts Ihnen mit ...? --- Engelbert Gruber -------+ SSG Fintl,Gruber,Lassnig / A6410 Telfs Untermarkt 9 / Tel. ++43-5262-64727 ----+ |