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

Add ability to specify max line length #22

Closed
dsherret opened this issue Feb 13, 2019 · 1 comment
Closed

Add ability to specify max line length #22

dsherret opened this issue Feb 13, 2019 · 1 comment

Comments

@dsherret
Copy link
Owner

This would be some way to specify a max length for the line and then signify where line breaks should occur.

@dsherret
Copy link
Owner Author

I've decided that a full proof solution to this problem would impact the performance too much. This kind of enhancement is best left to code formatters and code block writer should be viewed as a printer instead.

For example, the solution I was thinking of would be to redesign this library to be completely lazy and construct a tree. Then at the end, the tree would be evaluated to decide how newlines should occur. Yeah, no way that's going to be fast and the consuming code would be very complicated.

Closing this.

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

No branches or pull requests

1 participant