From 014b537dac7520bb128c9e3ca242210fa10139f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Nuno=20Monteiro?= Date: Wed, 21 Jun 2017 15:22:20 -0700 Subject: [PATCH] Suppress printing metadata for unknown types fixes #189 same as https://github.com/mfikes/planck/commit/9126717b116dc0563258a1dd9b6a4ac137fda6f6 --- CHANGELOG.md | 1 + src/cljs/snapshot/lumo/pprint/data.cljs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b980b558..b0265440 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ size before it was created. - Don't print `doc` for macros that are not referred ([#153](https://github.com/anmonteiro/lumo/issues/153)). - Correctly set __dirname and __filename when running script file ([#185](https://github.com/anmonteiro/lumo/issues/185)). - Also Crawl `deps.cljs` files in dirs ([#184](https://github.com/anmonteiro/lumo/issues/184)). +- Suppress printing metadata for unknown types ([#189](https://github.com/anmonteiro/lumo/issues/189)). ## [1.5.0](https://github.com/anmonteiro/lumo/compare/1.4.1...1.5.0) (2017-05-13) diff --git a/src/cljs/snapshot/lumo/pprint/data.cljs b/src/cljs/snapshot/lumo/pprint/data.cljs index 4760d79a..9f3162c8 100644 --- a/src/cljs/snapshot/lumo/pprint/data.cljs +++ b/src/cljs/snapshot/lumo/pprint/data.cljs @@ -56,7 +56,8 @@ (visit-unknown [this x] (if (instance? Eduction x) (visit this (sequence x)) - [:text (pr-str x)])) + [:text (binding [*print-meta* false] + (pr-str x))])) (visit-nil [this] (wrap-theme :results-font theme "nil"))