Complete default_language rc removal

This commit is contained in:
Juergen Spitzmueller 2012-08-08 09:31:46 +02:00
parent 2dd84b3417
commit a18af62087
2 changed files with 12 additions and 2 deletions

View File

@ -43,6 +43,9 @@
# Add "nice" flag for converters
# No conversion necessary.
# Incremented to format 9, by spitz
# Remove default_language rc.
import re
###########################################################
@ -229,6 +232,12 @@ def add_mime_types(line):
converted = converted + ' ""'
return (True, converted)
def remove_default_language(line):
if not line.lower().startswith("\\default_language"):
return no_match
return (True, "")
# End conversions for LyX 2.0 to 2.1
####################################
@ -247,5 +256,6 @@ conversions = [
[ 5, []],
[ 6, []],
[ 7, [add_mime_types]],
[ 8, []]
[ 8, []],
[ 9, [ remove_default_language ]]
]

View File

@ -55,7 +55,7 @@ namespace os = support::os;
namespace {
static unsigned int const LYXRC_FILEFORMAT = 8; // rgh: add "nice" flag
static unsigned int const LYXRC_FILEFORMAT = 9; // spitz: remove \\default_language
// when adding something to this array keep it sorted!
LexerKeyword lyxrcTags[] = {