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

Export new ColumnBreak class via more generic Break class #1031

Merged
merged 2 commits into from
Jul 8, 2021
Merged

Export new ColumnBreak class via more generic Break class #1031

merged 2 commits into from
Jul 8, 2021

Conversation

askoufis
Copy link
Contributor

@askoufis askoufis commented Jul 8, 2021

The only new feature in this PR is the new ColumnBreak class. See this spec for more details.

I figured it made sense to extend the existing Break class by allowing a break type to be passed in as an enum. I didn't add the textWrapping break type as that is the default break type and is already available as part of the Run class.

This is my first time submitting a non-trivial feature to this library, so let me know if there's anything to improve for next time to make the PR process quicker.

This makes it possible to generate column layouts like this (this is the output of the demo file I added):
Screen Shot 2021-07-08 at 17 45 22

@dolanmiu
Copy link
Owner

dolanmiu commented Jul 8, 2021

Perfect, looks good

@dolanmiu dolanmiu merged commit a8115ff into dolanmiu:master Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants