Fix off by one error

Looks like I forgot to test this case without quotes, but fortunately the new
export test found it.
This commit is contained in:
Georg Baum 2015-11-28 18:13:07 +01:00
parent 56ecd464f3
commit ad0643f4b5
2 changed files with 2 additions and 3 deletions

View File

@ -218,7 +218,6 @@ export/mathmacros/testcases_master_child_.*
export/mathmacros/testcases_speed_(dvi|pdf|pdf[23]|(dvi3|pdf[45])_(texF|systemF)) export/mathmacros/testcases_speed_(dvi|pdf|pdf[23]|(dvi3|pdf[45])_(texF|systemF))
# Language nesting, document is OK, fails because of a bug in LyX # Language nesting, document is OK, fails because of a bug in LyX
export/export/languagenesting1_lyx16
export/export/languagenesting1_dvi export/export/languagenesting1_dvi
export/export/languagenesting1_pdf export/export/languagenesting1_pdf
export/export/languagenesting1_pdf2 export/export/languagenesting1_pdf2

View File

@ -2105,9 +2105,9 @@ def revert_fontsettings(document):
document.header[i:i+1] = [f + ' ' + line[q1+1:q2]] document.header[i:i+1] = [f + ' ' + line[q1+1:q2]]
else: else:
if use_non_tex_fonts == "true": if use_non_tex_fonts == "true":
document.header[i:i+1] = [f + ' ' + line.split()[2]]
else:
document.header[i:i+1] = [f + ' ' + line.split()[1]] document.header[i:i+1] = [f + ' ' + line.split()[1]]
else:
document.header[i:i+1] = [f + ' ' + line.split()[0]]
j = j + 1 j = j + 1