-
Notifications
You must be signed in to change notification settings - Fork 182
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
lineWrapWidth not observed properly #60
Comments
great find! i dont have time to fix this right now. do you have time to dig in and resolve this with a PR? |
No, I don't have time to resolve this. |
Temporary fix to this is to override the default preferredWidth = 1000
pp = pprint.PrettyPrinter(width=preferredWidth)
ic.configureOutput(argToStringFunction=pp.pformat)
ic.lineWrapWidth = preferredWidth |
The following code:
prints
, whereas it all fits on one line, like:
The reason for this seems to be that
pformat
uses a wdth of 80 by default and IceCream doesn't communicate the (reduced) line width to pformat.The text was updated successfully, but these errors were encountered: