finish support for change tracking revert.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7861 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2003-10-06 14:56:23 +00:00
parent 3bb63924d5
commit 05f3c80f92
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-10-06 José Matoa <jamatos@lyx.org>
* lyxrevert_223.py: finish support for change tracking revert.
2003-10-03 José Matos <jamatos@lyx.org> 2003-10-03 José Matos <jamatos@lyx.org>
* lyx2lxy: * lyx2lxy:

View File

@ -34,14 +34,23 @@ def convert_bibtex(lines):
"\\begin_inset LatexCommand \\BibTeX") "\\begin_inset LatexCommand \\BibTeX")
def rm_tracking_changes(lines): def rm_tracking_changes(lines):
i = find_token(lines, "\\author", 0)
if i != -1:
del lines[i]
i = find_token(lines, "\\tracking_changes", 0) i = find_token(lines, "\\tracking_changes", 0)
if i == -1: if i == -1:
return return
del lines[i] del lines[i]
#FIXME
def rm_body_changes(lines): def rm_body_changes(lines):
pass i = 0
while 1:
i = find_token(lines, "\\change_", i)
if i == -1:
return
del lines[i]
def convert(header, body): def convert(header, body):
rm_end_header(header) rm_end_header(header)