schwarzdavid / bootstrap-email

MIT License
27 stars 11 forks source link

Wrong count with preview over 100 chars #2

Closed adrenalinedj closed 4 years ago

adrenalinedj commented 5 years ago

I have a preview tag with over 100 chars (116 exactly) and I'm facing this issue

node_modules/bootstrap-email/lib/BootstrapEmail.js:513 preview.html(content + ' '.repeat(100 - content.length));

I think a control should be done to avoid negative count on this operation 100 - content.length

schwarzdavid commented 4 years ago

Hey there, sorry for my late response. The bug will be fixed in the next release