forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is an attempt at improving the situation for issue JuliaLang#1759. I've added slightly enhanced `summary`s with information about the number of k/v pairs for Associative and Key/ValueIterator types. This PR keeps the old behavior (mostly) as `showcompact`. I then added new functionality in `show` and `showlimited` for Associative and Key/ValueIterators, printing newlines as delimiters between key/value pairs. When output is limited, keys are truncated to the left third of the TTY screen and values are truncated at newlines or the screen edge, with the `=>` separators aligned.
- Loading branch information
Showing
2 changed files
with
144 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters