On Wed, Jan 08, 2003 at 01:52:04PM +0200, Dekel Tsur wrote:
> However, it is probably better to use search&replace of regular expressions.


def change_preamble(lines):
        for i in xrange(0, len(lines)):
                words = string.split(lines[i])
                if len(words) > 2 and words[0] in [
                                "\\oddsidemargin", "\\evensidemargin", 
"\\marginparwidth",
                                "\\textwidth", "\\topmargin", "\\textheight",
                                "\\rightmargin", "\leftmargin", "\\bottommargin"] :
                        words[1:3] = [ words[1] + words[2] ]
                        lines[i] = string.join(words)

in lyxconvert_220.py fixes the reported case.

I can't build a patch as baywatch seems to be down?

Andre'


-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to