GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
pdfkit breaks lines at the punctuation within words like "A.B.C" or "3.14159" or "1,000".
This change causes it to split only where non-whitespace runs up against whitespace.
Fixes pdfkit issue #40
Match non-newline whitespace only
Exclude newline match
This is hopefully fixed by the new line wrapper, which implements the Unicode Line Breaking Algorithm as a separate module, removing the regex all together. Let me know if you still see problems!