! Copyright (C) 2017 Alexander Ilin.
! See http://factorcode.org/license.txt for BSD license.
-USING: arrays combinators.short-circuit formatting io
-io.directories io.encodings.utf8 io.files io.pathnames
-kernel math namespaces prettyprint sequences ui.gadgets.panes
-vocabs.loader ;
+USING: arrays combinators.short-circuit formatting
+io.directories io.encodings.utf8 io.files io.pathnames kernel
+math namespaces prettyprint sequences vocabs.loader ;
IN: help.lint.spaces
first [
{ [ CHAR: space = ] [ CHAR: " = ] } 1||
] trim-head
- " " swap subseq?
+ " " subseq-of?
] filter
[ drop ] [
swap <pathname> .