From c2a936196052ceefc38dca649379c78dd8ca11aa Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 4 Nov 2010 12:24:33 +0000 Subject: [PATCH] Slight simplification. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36037 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_2_0.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index 6416560bc4..1faed1612f 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -923,12 +923,12 @@ def revert_nomencl_cwidth(document): def revert_applemac(document): " Revert applemac encoding to auto " - i = 0 - if document.encoding == "applemac": - document.encoding = "auto" - i = find_token(document.header, "\\encoding", 0) - if i != -1: - document.header[i] = "\\encoding auto" + if document.encoding != "applemac": + return + document.encoding = "auto" + i = find_token(document.header, "\\encoding", 0) + if i != -1: + document.header[i] = "\\encoding auto" def revert_longtable_align(document): -- 2.39.5