Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove formfeeds from input as they're trefunge specific

  • Loading branch information...
commit 0081aa01273e989b93166035f3de5c7b5a112f11 1 parent b51d1c2
@palfrey authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/clostridium/core.clj
View
4 src/clostridium/core.clj
@@ -699,8 +699,8 @@
(defn buildGrid [fname]
(let [data (slurp fname)
- ;fixedData (apply str (replace {"\f" ""} data))
- lines (split data #"(?:(?:\r\n)|\n|\r)")]
+ fixedData (apply str (remove #(= % \formfeed) data))
+ lines (split fixedData #"(?:(?:\r\n)|\n|\r)")]
(zipmap (range (count lines)) (map #(zipmap (range (count %1)) (vec %1)) lines))
)
)
Please sign in to comment.
Something went wrong with that request. Please try again.