Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Additional line breaks when pressing the ENTER key while formatting in the Rich-Text Editor in SharePoint


View products that this article applies to.

Symptom

When you use the built-in Rich Text Editor (RTE) to edit content on a SharePoint site, an additional line space is added when pressing the ENTER key. This issue does not occur when you copy and paste multiple lines from a text editor. 
 

↑ Back to the top


Cause

This is expected behavior. By default, the RTE formats paragraph indents and text alignment by using in-line styles. The styles are not consistent among text editors.
For instance:
  • When you type any text and press ENTER in RTE, it adds the paragraph tag <p> … </p>.
  • When you type any text and press ENTER in Notepad, it adds a <br/> tag.

↑ Back to the top


Resolution

In the SharePoint RTE, use 'SHIFT+ENTER' to add a single line break.

↑ Back to the top


More Information

SharePoint RTE behaves the same way that many HTML editors do. The ENTER key will add a new paragraph (with an additional space).
When you press ENTER in RTE, it adds the paragraph tag <p> … </p>…, which will show as a free line space.

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2662794
Revision : 5
Created on : 8/20/2020
Published on : 8/20/2020
Exists online : False
Views : 360