Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jedahu committed Nov 23, 2011
1 parent e14be54 commit 15c52f8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/me/panzoo/story.clj
Expand Up @@ -21,6 +21,7 @@
; method. When run from the REPL or from Leiningen `gen-class` does nothing.
(:gen-class))

(declare encode-anchor)

;@top-level-vars
; ## Top level variables
Expand Down Expand Up @@ -457,7 +458,7 @@
; `*brushes*` is rebound on every invocation of `render-files`, because if it
; was not, unneeded brushes could accumulate and be included on subsequent
; calls to `render-files`.
(binding [*brushes* (atom (or (set *static-brushes*) #{})
(binding [*brushes* (atom (or (set (:static-brushes *settings*)) #{})
:validator #(not (some (comp not string?) %)))]
(render-files- paths)))

Expand Down Expand Up @@ -486,7 +487,7 @@

; Here is a list of the options this program can take when run from the
; commandline.
["-c" "--comment" "Comment syntax" :default ";"]
["-c" "--comment" "Comment syntax"]
["-b" "--brush" "SyntaxHighlighter brush file" :multi true]
["-t" "--theme" "SyntaxHighlighter theme file"]
["-l" "--language" "SyntaxHighlighter language"]
Expand All @@ -508,7 +509,7 @@
(if (or (not (seq tail)) (:help amap))
(do (println (str usage "\n" banner))
(System/exit 1))
(binding [*settings* {:theme (:theme amap)
(binding [*settings* {:theme (or (:theme amap) (:theme *settings*))
:stylesheet (:stylesheet amap)
:static-brushes (:brush amap)
:verbose? (:verbose amap)}
Expand Down

0 comments on commit 15c52f8

Please sign in to comment.