X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flyx2lyx%2FLyX.py;h=be5cf336e36c9f39377cfb9918caf7923c753362;hb=55a3dd7b346d29a52ba305a4558e9e380ef50f47;hp=5bb1472feb15e617172255a13b8a740b62ca0ee2;hpb=96e86c8113f382f24c5a5f81c9bd284e25c2e3b4;p=lyx.git diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py index 5bb1472feb..be5cf336e3 100644 --- a/lib/lyx2lyx/LyX.py +++ b/lib/lyx2lyx/LyX.py @@ -15,7 +15,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA " The LyX module has all the rules related with different lyx file formats." @@ -82,7 +82,8 @@ format_relation = [("0_06", [200], minor_versions("0.6" , 4)), ("1_5", range(246,277), minor_versions("1.5" , 7)), ("1_6", range(277,346), minor_versions("1.6" , 10)), ("2_0", range(347,414), minor_versions("2.0", 0)), - ("2_1", [], minor_versions("2.1", 0))] + ("2_1", [], minor_versions("2.1", 0)) + ] #################################################################### # This is useful just for development versions # @@ -125,7 +126,11 @@ def format_info(): def get_end_format(): " Returns the more recent file format available." - return format_relation[-1][1][-1] + # this check will fail only when we have a new version + # and there is no format change yet. + if format_relation[-1][1]: + return format_relation[-1][1][-1] + return format_relation[-2][1][-1] def get_backend(textclass):