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

css expression word-break:break-all; doesn't work. #113

Open
wonder13662 opened this issue Aug 8, 2017 · 4 comments
Open

css expression word-break:break-all; doesn't work. #113

wonder13662 opened this issue Aug 8, 2017 · 4 comments

Comments

@wonder13662
Copy link

Hi, I'm really enjoying your awesome product. but there's some itchy issue I found.

I've been trying several times, but css word-break:break-all; doesn't work at all. As you see below my 'LOOOOOOOOOOOOOOOOOOOOOOOONG!!' text is over its parent's width. It would be great for any feedback or help from you. Thanks in advance.

Here's my raw html text.
sample.txt
Tested in here.
https://sandbox.openhtmltopdf.com/

Bests,

Wonder Jung.

@danfickle
Copy link
Owner

Hi @wonder13662
Could you try instead:
word-wrap: break-word;

I think this is non standard.

@wonder13662
Copy link
Author

wonder13662 commented Aug 8, 2017 via email

@danfickle
Copy link
Owner

danfickle commented Aug 8, 2017

It sounds like you need the correct behaviour of overflow-wrap. Unfortunately, we don't support it and its a tricky place to change code as its part of the fundamental line breaking algorithm.

Correction:
We do support the word-wrap property which is just an alias of overflow-wrap. However, we do not support the word-break property.

@wonder13662
Copy link
Author

wonder13662 commented Aug 8, 2017 via email

danfickle added a commit that referenced this issue Sep 26, 2017
This should enable us to work on other line breaking modes such as #113
Also discovered a possible bug where there is breaking characters at
the start of a string.
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

2 participants