vue-line-clamp icon indicating copy to clipboard operation
vue-line-clamp copied to clipboard

how to prevent breaking a word when the new line happens?

Open whattocode opened this issue 6 years ago • 3 comments

how to prevent breaking a word when the new line happens?

error_word

whattocode avatar Sep 05 '19 06:09 whattocode

It comes from the "word-break: break-all;" rule that is added. It should be configurable in the plugin options IMO.

Currently the workaround is to override the word-break rule in css with an !important (😞)

robindevouge avatar Sep 10 '19 11:09 robindevouge

Thank you!!! I fixed it: style="word-break: normal;"

whattocode avatar Sep 13 '19 08:09 whattocode

You're welcome :)

BTW, I just noticed PR #28 would let us solve the issue within the options, we just need to be a bit patient

robindevouge avatar Sep 13 '19 08:09 robindevouge