support all wiki pages names
This commit is contained in:
parent
bc8d8f51a6
commit
5cd8d92274
2 changed files with 3 additions and 3 deletions
|
|
@ -77,7 +77,7 @@ class WebContentEdit(ReplApplication):
|
|||
editor = os.environ.get('EDITOR', 'vim')
|
||||
if editor == 'vim':
|
||||
params = '-p'
|
||||
os.system("%s %s %s" % (editor, params, ' '.join(paths.iterkeys())))
|
||||
os.system("%s %s %s" % (editor, params, ' '.join(['"%s"' % path.replace('"', '\\"') for path in paths.iterkeys()])))
|
||||
|
||||
for path, content in paths.iteritems():
|
||||
with open(path, 'r') as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue