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 disable word break option #3

Merged
merged 1 commit into from
Nov 25, 2023

Conversation

hidakatsuya
Copy link
Owner

@hidakatsuya hidakatsuya commented Nov 25, 2023

This PR adds an option to disable line-wrap.

text_box "text", at: [0, 100], disable_word_break: true

For compatibility, a config.default setting is also provided, with the default value set to true.

Prawn::DisableWordBreak.config.default # => true

@hidakatsuya hidakatsuya self-assigned this Nov 25, 2023
@hidakatsuya hidakatsuya force-pushed the dev/add-disable-word-break-option branch from ab37288 to f645a90 Compare November 25, 2023 10:45
@hidakatsuya hidakatsuya marked this pull request as ready for review November 25, 2023 10:47
@hidakatsuya hidakatsuya merged commit f293a66 into main Nov 25, 2023
5 checks passed
@hidakatsuya hidakatsuya deleted the dev/add-disable-word-break-option branch November 25, 2023 10:48
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.

None yet

1 participant