From 4dd12f4dc6c93220877af5d5c25b32f219e6d1b9 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 18 Apr 2010 00:57:57 +0000 Subject: [PATCH] Something weird is happening here, as reported by Enrico. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34198 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_2_0.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index f520446406..7488d589f5 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -22,7 +22,6 @@ import re, string import unicodedata import sys, os -import lyx2lyx_version from parser_tools import find_token, find_end_of, find_tokens, get_value, get_value_string @@ -1469,6 +1468,11 @@ def revert_shadedboxcolor(document): def revert_lyx_version(document): " Reverts LyX Version information from Inset Info " + # let's figure out why this doesn't work in the build directory. + # import lyx2lyx_version + # version = lyx2lyx_version.version + version = "2.0.0svn" + i = 0 while 1: i = find_token(document.body, '\\begin_inset Info', i) @@ -1495,7 +1499,7 @@ def revert_lyx_version(document): continue # We do not actually know the version of LyX used to produce the document. # But we can use our version, since we are reverting. - s = [lyx2lyx_version.version] + s = [version] # Now we want to check if the line after "\end_inset" is empty. It normally # is, so we want to remove it, too. lastline = j+1 -- 2.39.2