View Single Post
Old 03-12-2014, 02:10 AM   #18
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,440
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It is dangerous regardless of whether you know you need the spaces or not, because there is no way for you to tell that an entry in the completion list has trailing spaces by looking at it. And the same goes for any other invisible character, for all of which you should use an escape code, so that the expression becomes explicit.

The fact that I dont protect you from doing stupid things with soft hyphens is not a reason to not protect you from doing stupid things with spaces.
kovidgoyal is offline   Reply With Quote