Skip to content

Commit

Permalink
fixed whitespace check
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Klier committed Jul 30, 2010
1 parent 6f54137 commit f368b9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/dokuvimki.vim
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ class DokuVimKi:
editing or switches to the correct buffer if the is open already.
"""

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

Expand Down

0 comments on commit f368b9c

Please sign in to comment.