Skip to content

Commit f368b9c

Browse files
author
Michael Klier
committed
fixed whitespace check
1 parent 6f54137 commit f368b9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: plugin/dokuvimki.vim

+2-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ class DokuVimKi:
213213
editing or switches to the correct buffer if the is open already.
214214
"""
215215

216-
if wp.find(' ') != --1:
216+
wp = wp.strip()
217+
if wp.find(' ') != -1:
217218
print >>sys.stderr, "Pagenames cannot contain whitespace. Please use valid pagenames only!\nSee http://dokuwiki.org/pagename"
218219
return
219220

0 commit comments

Comments
 (0)