El 17.04.2017 a las 21:57, Richard Heck escribió:
I will look these over and commit them if they're acceptable.
Attached are the obvious "\\" fixes that should be backported. regards Uwe
diff --git "a/C:\\Users\\Usti\\AppData\\Local\\Temp\\TortoiseGit\\lyx_2_0-0271602.002.py" "b/D:\\LyXGit\\2.2.x\\lib\\lyx2lyx\\lyx_2_0.py" index 324c4130b8..1515e3cf12 100644 --- "a/C:\\Users\\Usti\\AppData\\Local\\Temp\\TortoiseGit\\lyx_2_0-0271602.002.py" +++ "b/D:\\LyXGit\\2.2.x\\lib\\lyx2lyx\\lyx_2_0.py" @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- # This file is part of lyx2lyx -# -*- coding: utf-8 -*- # Copyright (C) 2011 The LyX team # # This program is free software; you can redistribute it and/or @@ -279,8 +278,8 @@ def revert_xetex(document): pretext.append(tw) if osf: pretext.append('\\defaultfontfeatures{Numbers=OldStyle}') - pretext.append('\usepackage{xunicode}') - pretext.append('\usepackage{xltxtra}') + pretext.append('\\usepackage{xunicode}') + pretext.append('\\usepackage{xltxtra}') insert_to_preamble(document, pretext) @@ -1686,7 +1685,7 @@ def revert_nameref(document): document.body[stins:endins + 1] = newcontent if foundone: - add_to_preamble(document, ["\usepackage{nameref}"]) + add_to_preamble(document, ["\\usepackage{nameref}"]) def remove_Nameref(document):
diff --git "a/C:\\Users\\Usti\\AppData\\Local\\Temp\\TortoiseGit\\lyx_2_1-0271602.001.py" "b/D:\\LyXGit\\2.2.x\\lib\\lyx2lyx\\lyx_2_1.py" index 259d51e328..b0d751cd57 100644 --- "a/C:\\Users\\Usti\\AppData\\Local\\Temp\\TortoiseGit\\lyx_2_1-0271602.001.py" +++ "b/D:\\LyXGit\\2.2.x\\lib\\lyx2lyx\\lyx_2_1.py" @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- # This file is part of lyx2lyx -# -*- coding: utf-8 -*- # Copyright (C) 2011 The LyX team # # This program is free software; you can redistribute it and/or @@ -980,7 +979,7 @@ def revert_cell_rotation(document): finally: if load_rotating: - add_to_preamble(document, ["\\@ifundefined{turnbox}{\usepackage{rotating}}{}"]) + add_to_preamble(document, ["\\@ifundefined{turnbox}{\\usepackage{rotating}}{}"]) def convert_cell_rotation(document): @@ -1039,7 +1038,7 @@ def revert_table_rotation(document): finally: if load_rotating: - add_to_preamble(document, ["\\@ifundefined{turnbox}{\usepackage{rotating}}{}"]) + add_to_preamble(document, ["\\@ifundefined{turnbox}{\\usepackage{rotating}}{}"]) def convert_table_rotation(document):