SAP Knowledge Base Article - Public

2300558 - LMS: Notifications and labels do not insert line breaks when using <br>


Notification templates and labels include <br> for line breaks, but line breaks are not inserted.


SAP SuccessFactors Learning Management Systems - LMS

Reproducing the Issue

When editing labels for notifications:

  1. In the Learning Admin UI, click on the References icon in the upper right corner.
  2. Then click Geography > Labels.
  3. Search for the label to be edited. (Hint: This is found in 'Edit labels' on the notification template).
  4. Edit the label text and use carriage returns (Enter button) to insert new lines.
  5. Apply changes.
  6. An error displays, "The label value should not contain carriage returns or new line characters. If you need separate lines please use <br> instead."
  7. Update the text with <br> to insert new lines.
  8. Apply changes.
  9. Send notification, and note that there are no line breaks inserted.

When editing notification templates:

  1. From the Learning Admin UI, access System Admin > Configuration > Notification templates.
  2. Search for the template to be edited.
  3. Click the edit icon.
  4. Add <br> into the message body where line breaks should be inserted.
  5. Save changes.
  6. Send notification and note that there are no line breaks inserted. 



Incorrect formatting.


To correctly display <br> tags as new line in the notification email, the following steps are to be followed:

  1. Access Learning Admin UI.
  2. Navigate to System Admin > Configuration > Notification Templates.
  3. Search for the template you're having the issue with.
  4. Click the edit icon to edit the notification template.
  5. Click the 'Messages' tab.
  6. In the BODY section of the notification template, add <html> tag at the beginning of the message body and </html> tag at the end of the message body.

BODY_add html tags.png



html, carriage return, linebreak, error, edit label, locale, geography, new line, characters, char, separate lines, learning, email, issue, kal, kac , KBA , LOD-SF-LMS , Learning Management System , Problem


SAP SuccessFactors Learning 1602