Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{:map {:justify? true}} prevents output when data in the map doesn't fit #23

Closed
kkinnear opened this issue Apr 19, 2017 · 1 comment
Closed
Labels

Comments

@kkinnear
Copy link
Owner

In the 0.3.0 version some performance optimizations were added that caused the justified output to be completely missing when some lines in a map that is being justified don't fit inside of the width. The most obvious case is where a string is just too long to "fit", and that causes the map and possibly all of the output to be missing. For instance, the Clojure 1.8 definition of defn has a string in the map of metadata that is too big for pretty much any width, and so if you do:

(czprint-fn defn {:map {:justify? true}})

you will not get any output. The same thing happens when you say {:style :justified}.

The workaround is to not justify something, and this problem will not occur.

kkinnear added a commit that referenced this issue Apr 19, 2017
@kkinnear kkinnear added the bug label Apr 19, 2017
@kkinnear
Copy link
Owner Author

Fixed in zprint 0.3.2 (and zprint-filter-0.3.2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant