mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
lib/configure.py: fix checkTeXAllowSpaces, by Enrico
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14336 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b16aafd88e
commit
efc3b4e52a
@ -640,8 +640,12 @@ def checkTeXAllowSpaces():
|
||||
tex_allows_spaces = 'false'
|
||||
if lyx_check_config:
|
||||
print "Checking whether TeX allows spaces in file names... ",
|
||||
writeToFile('a b.tex', r'\nonstopmode\message{working^^J}' )
|
||||
if ''.join(cmdOutput(LATEX + ' "a b"')).find('working') != -1:
|
||||
writeToFile('a b.tex', r'\message{working^^J}' )
|
||||
if os.name == 'nt':
|
||||
latex_out = cmdOutput(LATEX + r""" "\nonstopmode\input{\"a b\"}" """)
|
||||
else:
|
||||
latex_out = cmdOutput(LATEX + r""" '\nonstopmode\input{"a b"}' """)
|
||||
if 'working' in latex_out:
|
||||
print 'yes'
|
||||
tex_allows_spaces = 'true'
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user