Skip to content

Commit

Permalink
Clojure 1.3 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Sep 29, 2011
1 parent 870d801 commit 5d996a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@ pom.xml
lib
classes
.lein-deps-sum
/.lein-failures
4 changes: 2 additions & 2 deletions project.clj
@@ -1,4 +1,4 @@
(defproject doric "0.6.0-SNAPSHOT"
:description "Clojure table layout"
:dependencies [[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]])
:dependencies [[org.clojure/clojure "1.3.0"]]
:multi-deps {"1.2" [[org.clojure/clojure "1.2.1"]]})
5 changes: 2 additions & 3 deletions src/doric/core.clj
@@ -1,7 +1,6 @@
(ns doric.core
(:refer-clojure :exclude [format name join split when])
(:use [clojure.string :only [join split]])
(:require [clojure.contrib.string :as s]))
(:use [clojure.string :only [join split]]))

(defn- title-case-word [w]
(if (zero? (count w))
Expand Down Expand Up @@ -44,7 +43,7 @@

(defn align-cell [col s align]
(let [width (:width col)
s (s/take width s)
s (subs s 0 (min (count s) width))
len (count s)
pad #(apply str (take % (repeat " ")))
padding (- width len)
Expand Down

0 comments on commit 5d996a7

Please sign in to comment.