Properly quote command line arguments. Patch from JMarc. Fixes

bug #8648.
This commit is contained in:
Richard Heck 2013-04-29 09:58:19 -04:00
parent f7e0d2e566
commit 8d6573d130
2 changed files with 5 additions and 2 deletions

View File

@ -330,13 +330,13 @@ def addEditorAlternatives(rcs):
if len(rcs) == 1:
m = r.match(rcs[0])
if m:
alt = r'\editor_alternatives ' + m.group(1) + " %%"
alt = r'\editor_alternatives ' + m.group(1) + ' "%%"'
elif len(rcs) > 1:
m = r.match(rcs[idxx])
if m:
if idxx > 0:
alt += '\n'
alt += r'\editor_alternatives ' + m.group(1) + " %%"
alt += r'\editor_alternatives ' + m.group(1) + ' "%%"'
return alt

View File

@ -226,3 +226,6 @@ What's new
- Avoid annoying warnings with newer gcc versions.
- Properly quote arguments in configuration (bug 8648).