Module Description
The text editor often replaces the line breaks with empty paragraphs <p>nbsp;<p>. Paragraphs with a margin can weaken the look of your website. This module provides a text filter that replaces empty paragraphs, for example <p></p> or <p> </p> with <br /> tags.

Remove empty paragraphs This module also allows you to remove empty paragraphs if you want to delete them completely. This is not recommended because sometimes the editor needs to add an extra space between the text.

Configuration
* Go to 'Text formats and editors' on the page '/admin/config/content/formats'
* Add a new text format or edit an existing one
* In the chosen text format, select the 'Improve line breaks' option
* Change its order on the list
* If you want to completely delete empty paragraphs set checkbox 'Remove empty paragraphs' on the 'Improve line breaks' tab in the 'Filter settings'
* Click on the 'Save configuration' button

Notice: The Improve line breaks filter should be triggered after the 'Convert line breaks into HTML' and 'Correct faulty and chopped off HTML' if these are selected.

This module skip ignore tags (script, style, code, pre, object, iframe) when it replaces or removes unnecessary paragraphs.



Project Usage
323
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the issue of empty paragraphs being replaced with unnecessary margin-inducing line breaks in text editors, providing a filter to replace empty paragraphs with <br /> tags and the option to remove them completely.
Data Name
improve_line_breaks_filter

OPENAI CHATBOT

OPENAI CHATBOT

14:31:32
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.