jsPDF-AutoTable icon indicating copy to clipboard operation
jsPDF-AutoTable copied to clipboard

linebreaks not working in metoer project

Open alondahari opened this issue 11 years ago • 7 comments

Hi, I like what you did here. For some reason, no matter what I do, I always get the 'ellipsize' behavior. Also, when I set overflow to false and look at the text passed to renderCell, I get the ellipsized text.

alondahari avatar Jun 07 '15 02:06 alondahari

Is it a version issue? I'm pretty clueless at this point, and would love even a dirty workaround. Thanks!

alondahari avatar Jun 07 '15 02:06 alondahari

I am facing the same issue. Linebreak is not working at all. I am also getting ellipsize behavior always. Please let me know the workaround. Need it urgently

ankur2728 avatar Jun 08 '15 16:06 ankur2728

After some experimentation I realized that there is a bug that makes linebreaks only work when the overflowColumns option is set. For now you can simply list all columns you want to overflow there, but I will look into this as soon as possible.

I can't reproduce the other issue it right now. Can you confirm that it is a meteor issue only?

simonbengtsson avatar Jun 09 '15 06:06 simonbengtsson

I am trying it in my application. I have set the overflowcolumns to false, Overflow to linebreak, then it is not coming as ellipsize but extra characters are hiding. I will check after setting overflowcolumns.

ankur2728 avatar Jun 09 '15 07:06 ankur2728

I published a fix now for the linebreak issue. Let me know if it works for you!

simonbengtsson avatar Jun 09 '15 07:06 simonbengtsson

This plugin is wonderful. Thanks a ton. From where can i get the updated plugin with your fix.

ankur2728 avatar Jun 09 '15 08:06 ankur2728

Thanks! You can download it from this github repo or via bower as stated in the the README.

simonbengtsson avatar Jun 09 '15 08:06 simonbengtsson