mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Complete default_language rc removal
This commit is contained in:
parent
2dd84b3417
commit
a18af62087
@ -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 ]]
|
||||
]
|
||||
|
@ -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[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user