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

New line issue when using in Angular

Open arunlalkp opened this issue 5 years ago • 2 comments

When I use AutoTable along-with Angular, there is an issue in cell content new line rendering. I saw the library checks the \n and <br> for rendering a new line in parseCellContent() function. When we use the <br> tag, Angular randomly adds attributes to it like <br _ngcontent-mjv-c183=""> In this case, the <br> check fails, and nothing happens to cell contents. Using the innerHTML Directive can be a fix, but there has any other solution right here?

arunlalkp avatar Dec 30 '20 16:12 arunlalkp

Oh! Good catch. A PR would be much appreciated!

simonbengtsson avatar Dec 30 '20 17:12 simonbengtsson

Sure 👍🏼

arunlalkp avatar Dec 31 '20 00:12 arunlalkp