mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
Fix bug #6873: Shell execution of \nonstopmode tried when no latex binary present
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@35351 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9ae2d815f9
commit
7663f6953f
@ -921,10 +921,13 @@ def checkTeXAllowSpaces():
|
||||
if lyx_check_config:
|
||||
print "Checking whether TeX allows spaces in file names... ",
|
||||
writeToFile('a b.tex', r'\message{working^^J}' )
|
||||
if os.name == 'nt':
|
||||
latex_out = cmdOutput(LATEX + r""" "\nonstopmode\input{\"a b\"}" """)
|
||||
if LATEX != '':
|
||||
if os.name == 'nt':
|
||||
latex_out = cmdOutput(LATEX + r""" "\nonstopmode\input{\"a b\"}" """)
|
||||
else:
|
||||
latex_out = cmdOutput(LATEX + r""" '\nonstopmode\input{"a b"}' """)
|
||||
else:
|
||||
latex_out = cmdOutput(LATEX + r""" '\nonstopmode\input{"a b"}' """)
|
||||
latex_out = ''
|
||||
if 'working' in latex_out:
|
||||
print 'yes'
|
||||
tex_allows_spaces = 'true'
|
||||
|
@ -128,6 +128,9 @@ What's new
|
||||
- Fix parsing of commands sent through the lyxserver, such that they don't
|
||||
need to be terminated by a newline character (bug 6868).
|
||||
|
||||
- Don't try to blindly execute the latex command if no latex binary is
|
||||
available (bug 6873).
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user