This project is not covered by Drupal’s security advisory policy.
Inspired by Empty Paragraph Killer this is also a filter module, which will trim out any empty tag defined in its configuration.
Why do you need this module?
There are a few scenarios in which you will find this useful:
- When you have CKeditor (or any WYSIWYG) in the text input users might hit the return key more times at the end of text/paragraphs.
Your theme is probably already handling the correct spacing between paragraphs and in CSS you can't really target semi-empty tags (eg, containing a non-breaking-space), so the extra paragraph can ruin the look of a site. This module can filter out those empty tags of all user-entered data on a site. - Another scenario is the data import: unless you preprocess all of this data you might end up with several empty tags which either require manual cleanup or (in case of constant sync) they are just going to ruin your theme look
Installation and Configuration
After installing the module in the usual way (More info: D7, or D8) you need to enable the filter:
- Go to your Input Formats configuration (
admin/config/content/formats) - Open the configuration form of the desired text format.
- In the Enabled filters section you need to enable the "Empty Tags".
You may also need to increase the weight of this filter so that it is the last filter that runs, it's recommended to run this at the least after any other HTML filters.this can be done in the Filter processing order section. - Finally you can configure the tags you want to filter out in the section Filter settings, selecting the tab "Empty Tags"
- do not forget to store the config clicking on "Save configuration"
Project information
Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projectsObsolete
Use of this project is deprecated.- Project categories: Content editing experience
- By esolitos on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
