Skip to content

Commit 3463bf8

Browse files
[pp] Reuse orchard.print in orchard.pp (#338)
1 parent c0cf24b commit 3463bf8

File tree

7 files changed

+150
-358
lines changed

7 files changed

+150
-358
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
## master (unreleased)
44

55
* [#314](https://github.com/clojure-emacs/orchard/pull/314): Print: add special printing rules for records and allow meta :type overrides.
6-
* [#336](https://github.com/clojure-emacs/orchard/pull/336): Inspector: tune pretty-printing mode.
76
* [#337](https://github.com/clojure-emacs/orchard/pull/337): Print: make orchard.print consistent with CIDER printing.
7+
* [#338](https://github.com/clojure-emacs/orchard/pull/337): Print: reuse orchard.print in orchard.pp.
8+
* [#336](https://github.com/clojure-emacs/orchard/pull/336): Inspector: tune pretty-printing mode.
89

910
## 0.34.0 (2025-04-18)
1011

src/orchard/inspect.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
[clojure.core.protocols :refer [datafy nav]]
1313
[clojure.string :as str]
1414
[orchard.inspect.analytics :as analytics]
15+
[orchard.pp :as pp]
1516
[orchard.print :as print])
1617
(:import
1718
(java.lang.reflect Constructor Field Method Modifier)
@@ -57,7 +58,7 @@
5758
of the inspector."
5859
[{:keys [indentation pretty-print]} value]
5960
(if pretty-print
60-
(print/pprint-str value {:indentation (or indentation 0)})
61+
(pp/pprint-str value {:indentation (or indentation 0)})
6162
(print/print-str value)))
6263

6364
(defn- array? [obj]

0 commit comments

Comments
 (0)