]> git.lyx.org Git - features.git/commitdiff
Fix bug #7610 (wrong latex flavor flag set by pref2pref).
authorJulien Rioux <jrioux@lyx.org>
Sat, 11 Jun 2011 15:33:35 +0000 (15:33 +0000)
committerJulien Rioux <jrioux@lyx.org>
Sat, 11 Jun 2011 15:33:35 +0000 (15:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39006 a592a061-630c-0410-9148-cb99ea01b6c8

lib/scripts/prefs2prefs_prefs.py
status.20x

index 40b5072f82ebc93a5b7df642f10e4c9ce633ada7..7a2cdd69bcf0156511148e5e7008e69db21bec9f 100644 (file)
@@ -71,10 +71,18 @@ def latex_flavor(line):
        conv = m.group(1)
        fmat = m.group(2)
        args = m.group(3)
-       flavor = "pdflatex"     
-       if conv in ("platex", "xetex", "luatex"):
+       conv2fl = {
+                  "luatex":   "lualatex",
+                  "pplatex":  "latex",
+                  "xetex":    "xelatex",
+                 }
+       if conv in conv2fl.keys():
+               flavor = conv2fl[conv]
+       else:
                flavor = conv
-       return (True, 
+       if flavor == "latex":
+               return no_match
+       return (True,
                "\\converter \"%s\" \"%s\" \"%s\" \"latex=%s\"" % (conv, fmat, args, flavor))
 
 emre = re.compile(r'^\\[Ff]ormat\s+(.*)\s+"(document[^"]*?)"')
index ec1edb12e8e776d886acf2426473dda076d26f81..cb8fded876c441646792d3cbb067493ff30ba19f 100644 (file)
@@ -102,6 +102,8 @@ What's new
 - On Windows, improve detection of the TeX engine when the file system does
   not support short names and the temp directory contains spaces.
 
+- Fixed the latex flag set by the prefs2prefs script (bug 7610).
+
 
 * USER INTERFACE