From: José Matox Date: Sun, 22 Jul 2007 20:10:28 +0000 (+0000) Subject: Second part of bug 4050 fix X-Git-Tag: 1.6.10~9074 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=61cb6824a677c741289f41993ecd5bef81dbcb03;p=lyx.git Second part of bug 4050 fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19168 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/lyx_1_5.py b/lib/lyx2lyx/lyx_1_5.py index 21320cf4a0..6c4c806685 100644 --- a/lib/lyx2lyx/lyx_1_5.py +++ b/lib/lyx2lyx/lyx_1_5.py @@ -1226,10 +1226,7 @@ def revert_accent(document): if j < len(document.body[i]) - 1: document.body.insert(i+1, document.body[i][j+1:]) # Delete the accented character - if j > 0: - document.body[i] = document.body[i][:j-1] - else: - document.body[i] = u'' + document.body[i] = document.body[i][:j] # Finally add the InsetLaTeXAccent document.body[i] += "\\i \\%s{}" % inverse_special_accent_map[accent] break @@ -1248,10 +1245,7 @@ def revert_accent(document): if j < len(document.body[i]) - 1: document.body.insert(i+1, document.body[i][j+1:]) # Delete the accented characters - if j > 1: - document.body[i] = document.body[i][:j-1] - else: - document.body[i] = u'' + document.body[i] = document.body[i][:j-1] # Finally add the InsetLaTeXAccent document.body[i] += "\\i \\%s{%s}" % (inverse_accent_map[accent], accented_char) break