Extra line breaks in html
Since our upgrade to SMA version 9.1, we are having an issue with line breaks in html content.
We have a workflow set up through SharePoint that should send an email to the service desk to generate several tickets. Using the 'send an email' action in SharePoint designer, we have tried to send the following content:
@owner=Justin Zandee<BR>This is a test
We have also tried
<HTML><HEAD> <META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD> <BODY>@owner=Justin Zandee <META name=GENERATOR content="MSHTML 11.00.10570.1001"><BR>This is a test</BODY></HTML>
Which is the default html formatting used by SharePoint designer.
In both of these cases, the result that gets submitted into the ticket contains the following:
<div class="k-wordwrap"> <br> <div id="k-ticket-comment-label-483174"> <span class="fr-view wysiwyg"><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><br /> <html><head></head><body>@owner=Justin Zandee<br>This is a test<br>5</body></html><br /> </span></div>
The two highlighted line breaks seem to be added any time we send an email from our workflow to the service desk. This has the effect of not allowing the @owner tag to work properly.
When sending an e-mail directly to the service desk through a mail client, the @owner tag seems to work correctly, but the two <br> appear before 'This is a Test'
We have also noticed that seemingly random line breaks are inserted into the ticket.
<br /><br /> A New Employee Checklist has been<br />submitted for New Employee <br /><br /> First and Last Name: New<br />Employee <br /> Job Title: IT Analyst <br /> Employee Type: Contract <br /> Department:<br />IT <br /> Manager/Supervisor: IT Manager <br /> Start Date:<br />5/31/2019 <br /> Office<br />Number: 101 <br /> Office Phone Number: 555-5555 <br /> Office Phone Allocation:<br />Use Existing <br /> Computer Hardware Allocation: Use Existing
All of the highlighted breaks are not included in the source email.