mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix a couple problems with new prefs2prefs material.
This commit is contained in:
parent
cca2d4c927
commit
6eb0b47a8a
@ -77,7 +77,7 @@ def get_format(line):
|
|||||||
return entries
|
return entries
|
||||||
elif not line[i].isspace():
|
elif not line[i].isspace():
|
||||||
beg = i
|
beg = i
|
||||||
while not line[i].isspace():
|
while i < len(line) and not line[i].isspace():
|
||||||
i = i + 1
|
i = i + 1
|
||||||
end = i
|
end = i
|
||||||
entries.append(line[beg:end])
|
entries.append(line[beg:end])
|
||||||
@ -265,8 +265,9 @@ def split_pdf_format(line):
|
|||||||
# All other converters are likely meant for further processing on export.
|
# All other converters are likely meant for further processing on export.
|
||||||
# The only converter to pdf that stays untouched is dvi->pdf:
|
# The only converter to pdf that stays untouched is dvi->pdf:
|
||||||
# All other converters are likely meant for graphics.
|
# All other converters are likely meant for graphics.
|
||||||
if (entries[1] == 'pdf' and entries[2] == 'eps') or \
|
if len(entries) > 2 and \
|
||||||
(entries[1] != 'ps' and entries[2] == 'pdf'):
|
((entries[1] == 'pdf' and entries[2] == 'eps') or \
|
||||||
|
(entries[1] != 'ps' and entries[2] == 'pdf')):
|
||||||
if entries[1] == 'pdf':
|
if entries[1] == 'pdf':
|
||||||
converted = entries[0] + ' pdf6 ' + entries[2]
|
converted = entries[0] + ' pdf6 ' + entries[2]
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user