From 35846ee63ab0c17ba3656a6c5dfd89f06dd69878 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Mon, 6 Sep 2010 00:31:45 +0000 Subject: [PATCH] lyx_2_0.py: fixes for the mathdots conversion/reversion routines git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35287 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_2_0.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index ff60e75bb4..bc4111cc03 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -2058,7 +2058,7 @@ def revert_mathrsfs(document): def convert_mathdots(document): - " Load mathdots if used in the document " + " Load mathdots automatically " while True: i = find_token(document.header, "\\use_esint" , 0) if i != -1: @@ -2073,7 +2073,7 @@ def revert_mathdots(document): if i != -1: # use \@ifundefined to catch also the "auto" case add_to_preamble(document, ["% this command was inserted by lyx2lyx"]) - add_to_preamble(document, ["\\@ifundefined{iddots}{\\usepackage{mathdots}}"]) + add_to_preamble(document, ["\\@ifundefined{iddots}{\\usepackage{mathdots}}\n"]) del document.header[i] break -- 2.39.5