Skip to content

Commit 93e8b93

Browse files
[inspect] Display string length
1 parent 485b142 commit 93e8b93

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## master (unreleased)
44

55
- [#346](https://github.com/clojure-emacs/orchard/pull/346): Inspector: only show those datafied collection items that have unique datafy represantation.
6+
- [#348](https://github.com/clojure-emacs/orchard/pull/348): Inspector: display length of inspected strings.
67

78
## 0.35.0 (2025-05-28)
89

src/orchard/inspect.clj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,11 +367,8 @@
367367
(render-onto (render-indent inspector) values)))
368368

369369
(defn- render-indent-ln [inspector & values]
370-
(let [padding (padding inspector)]
371-
(cond-> inspector
372-
padding (render padding)
373-
(seq values) (render-onto values)
374-
true (render '(:newline)))))
370+
(-> (apply render-indent inspector values)
371+
(render-ln)))
375372

376373
(defn- render-section-header [inspector section]
377374
(-> (render-ln inspector)
@@ -822,6 +819,7 @@
822819
(-> (render-class-name inspector obj)
823820
(render "Value: " (print-string inspector obj))
824821
(render-ln)
822+
(render-indent-ln "Length: " (str (.length obj)))
825823
(render-section-header "Print")
826824
(indent)
827825
(render-indent-str-lines obj)

0 commit comments

Comments
 (0)