From d83c9f3fe33d9c2136d8bbc36ad6f64adf1e01f6 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 26 Nov 2010 16:07:17 +0000 Subject: [PATCH] Minor style. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36509 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_2_0.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index cf37d6d5e2..492a6cb1cb 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -2367,9 +2367,10 @@ def convert_use_xetex(document): i = find_token(document.header, "\\use_xetex", 0) if i == -1: document.warning("Malformed document. No \\use_xetex param!") - else: - val = get_value(document.header, "\\use_xetex", 0) - document.header[i] = "\\use_non_tex_fonts " + val + return + + val = get_value(document.header, "\\use_xetex", 0) + document.header[i] = "\\use_non_tex_fonts " + val def revert_use_xetex(document): @@ -2378,9 +2379,10 @@ def revert_use_xetex(document): i = find_token(document.header, "\\use_non_tex_fonts", 0) if i == -1: document.warning("Malformed document. No \\use_non_tex_fonts param!") - else: - val = get_value(document.header, "\\use_non_tex_fonts", 0) - document.header[i] = "\\use_xetex " + val + return + + val = get_value(document.header, "\\use_non_tex_fonts", 0) + document.header[i] = "\\use_xetex " + val ##