• (indent this relative-to offset)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/pprint/pretty_writer.clj:468 top

(defn indent [^Writer this relative-to offset]
   (let [lb (getf :logical-blocks)]
     (if (= (getf :mode) :writing)
         (write-white-space this)
         (ref-set (:indent lb) 
                  (+ offset (condp = relative-to
			      :block @(:start-col lb)
			      :current (get-column (getf :base))))))
       (let [pos (getf :pos)]
         (add-to-buffer this (make-indent-t lb relative-to offset pos pos)))))))
Vars in clojure.contrib.pprint.pretty-writer/indent: + = condp defn dosync let ref-set deref
Used in 0 other vars

Comments top

No comments for indent. Log in to add a comment.