-
-
Notifications
You must be signed in to change notification settings - Fork 524
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
Fancy format crashes on low linewrap values #1201
Comments
I can pick this up if there isn't any work already happening |
Yup, go for it. |
Looks like the invalid linewrap value corresponds to |
Seems like it's sufficient to enforce that the exporter's initial linewrap value is at least 1. |
I agree, though it should be made clear to the user as to what the actual |
Bug Report
Environment
jrnl --diagnostic
output:Current Behavior
When the
linewrap
config value is particularly low, the fancy formatting crashes with a stack trace that leads to the following error:Expected Behavior
jrnl shouldn't crash. It should be able to gracefully work around these restrictions with wrapping. Maybe part of the solution would be distancing the title and dates from each other so that they don't have to fight each other over the same horizontal length.
Repro Steps
I created a default journal with the following config properties:
Then I ran:
Other Information
Full stack trace:
The text was updated successfully, but these errors were encountered: