File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ common sense styling.
8
8
9
9
Lein:
10
10
```
11
- [org.clojars.mjdowney/excel-clj "1.1.0 "]
11
+ [org.clojars.mjdowney/excel-clj "1.1.1 "]
12
12
```
13
13
14
14
- [ Getting Started] ( #getting-started )
Original file line number Diff line number Diff line change 1
- (defproject org.clojars.mjdowney /excel-clj " 1.1.0 "
1
+ (defproject org.clojars.mjdowney /excel-clj " 1.1.1 "
2
2
:description " Generate Excel documents & PDFs from Clojure data."
3
3
:url " https://github.com/matthewdowney/excel-clj"
4
4
:license {:name " Eclipse Public License"
Original file line number Diff line number Diff line change 163
163
(mapv #(update % ::depth inc) children)
164
164
; ; And finally an aggregation if there are multiple header children
165
165
; ; or any leaf children
166
- (when (or (> (count (group-by :depth children)) 2 ) (not (::header? (first children))))
167
- [(merge {::depth 0 ::label " " ::total? true } (value node aggregate-with))]))
166
+ (let [fchild (first children)
167
+ siblings (get (group-by :depth children) (:depth fchild))]
168
+ (when (or (>= (count siblings) 2 ) (not (::header? fchild)))
169
+ [(merge {::depth 0 ::label " " ::total? true } (value node aggregate-with))])))
168
170
; ; A leaf just has its label & value attrs. The depth is inc'd by each
169
171
; ; parent back to the root, so it does not stay at 0.
170
172
(merge {::depth 0 ::label (label node)} (value node aggregate-with))))
You can’t perform that action at this time.
0 commit comments