#
# 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."
("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 #
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):