Hi Stackoverflow I have a question about HTML formatting. I have bootstrap modal where I dynamically change its body contents using jQuery using a function append(). Here is the code:
<div class="modal-body">
<pre id="emails"></pre>
</div>
var s = email.trim();
$('#emailsModal').find('.modal-body').find('#emails').append("<p>"+s+"</pre>");
And here is the conclusion:

This list is designed so that the user can copy the list and paste it into any email program that they want. This worked fine on most, such as gmail and micrsoft Outlook. The problem occurs when I try to copy this list of letters to Thunderbird.
For some reason, when I copy emails, the clipboard contains a line break, and Thunderbird examines this empty email. Therefore, the output looks something like this:
email1@example.com,,email2@example.com,,email3@example.com ...
, , , .
- ? , , , .
.
user4780686