Look at me, I'm an elite Python hacker.

In other words,  this trivial patch seems to work for me. Comments ?

regards
john


Index: lyxconvert_215.py
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/lyx2lyx/lyxconvert_215.py,v
retrieving revision 1.3
diff -u -r1.3 lyxconvert_215.py
--- lyxconvert_215.py   27 Aug 2002 15:23:52 -0000      1.3
+++ lyxconvert_215.py   5 Jan 2003 03:23:15 -0000
@@ -94,7 +94,22 @@
         lines[i] = lines[i] + '{}'
         i = i + 1
 
+def remove_cursor(lines):
+    i = find_token(lines, '\\cursor', 0)
+    if i != -1:
+        del lines[i]
+
+def remove_vcid(lines):
+    i = find_token(lines, '\\lyxvcid', 0)
+    if i != -1:
+        del lines[i]
+    i = find_token(lines, '\\lyxrcsid', 0)
+    if i != -1:
+        del lines[i]
+
 def convert(header,body):
+    remove_vcid(header)
+    remove_cursor(body)
     update_toc(body)
     replace_protected_separator(body)
     merge_formula_inset(body)
-- 
"I will eat a rubber tire to the music of The Flight of the Bumblebee"

Reply via email to