José Matos wrote: > On Wednesday 05 February 2003 13:53, Angus Leeming wrote: >> I read this as saying that a Formula inset in a lyx file in lyxformat 216 >> should not contain any line breaks. Correct? > > Yes. > Although this looks sloppy code, the idea is to be able to user older > python > versions. If I could use python the code would look more tight, and easier > to read. > >> def merge_formula_inset(lines): >> i=0 >> while 1: >> i = find_token(lines, "\\begin_inset Formula", i) >> if i == -1: break >> if lines[i+1] in math_env: >> lines[i] = lines[i] + lines[i+1] >> del lines[i+1] >> i = i + 1
That's odd. Running the attached test case through $ lyx2lyx -t 216 test_215.lyx > test_216.lyx changes only the file format. -- Angus
test_215.lyx
Description: application/lyx