Skip to content

Conversation

@Ketler13
Copy link
Contributor

Problem

If linewidth in linewrapper is too small even for just ellipsis, the while-loop starts and never ends

Solution

Do while-loop till buffer is not empty string. After while-loop check if there is enough space to contain buffer and ellipsis, and only if this condition is true, add ellipsis to buffer

@alafr alafr merged commit 56c7deb into foliojs:master Jun 29, 2018
@alafr
Copy link
Collaborator

alafr commented Jun 29, 2018

Thanks for the fix.

@alafr alafr mentioned this pull request Jul 3, 2018
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