Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

No Non-breaking Space Filter is a simple filter module that filters out all non-breaking spaces ( ). Like all filter modules, the No Non-breaking Space Filter does not change the text stored in the database. The filter goes into action only after the text is loaded from the database and the text has to be displayed on the website.

All non-breaking space HTML entities are replaced by blank space characters. Multiple contiguous space characters are replaced by a single blank space character.

Of course, the non-breaking space HTML entity has its right to exist. But multiple consecutive non-breaking space entities in a contiguous text break all typographical rules. When texts are copied from text processors like Microsoft Office Word or Libreoffice Writer into the Drupal WYSIWIG editors, then what should never have happened can happen. ...

Configuration

Text format filter

Go to Administration » Configuration » Content authoring » Text formats (admin/config/content/formats) to enable this filter on your existing text formats or create a new text format ...

... and finally get rid   of  formated texts like this      example.

There is only one additional setting: Preserve placeholders (by default not enabled). A placeholder non-breaking space is surrounded by a HTML tag, for example <p>&nbsp;</p>.

Field formatter

Got to Administration » Structure » Content types » Your content type » Manage display (admin/structure/types/manage/<content-type>/display) and select the field formatter.

Similar / related modules

  • Module nbsp_filter: Its main purpose is to avoid punctuation marks to break alone on a newline for languages where it has to have a space before or after.
  • Module nbsp: Does the opposite. It is a CKEditor plugin to insert nbsp’s.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
May 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
8.x-1.7 Stable Aug 9, 2024
8.x-1.6 Stable Jul 15, 2024
8.x-1.5 Stable May 30, 2023
8.x-1.4 Stable May 22, 2023