JSM Non-Breaking Space (nbsp) for French Content

By JS Morisset

★ 4.6/5 (15 ratings)1,000+ active installationsVersion 1.13.1

Adds a non-breaking space between (nbsp) words and punctuation marks to avoid inappropriate line-breaks in French.

Description

This plugin converts spaces to HTML non-breaking space entities (ie.  ) in the content, excerpt, comments, text widget, and WooCommerce short description as required by French language punctuation rules.

If the <!--:fr--> HTML tag is found (used by some multilingual plugins), non-breaking spaces are added only between the <!--:fr--> and <!--:--> HTML tags.

There are no plugin settings – simply install and activate the plugin.

Changelog

Version Numbering

Version components: {major}.{minor}.{bugfix}[-{stage}.{level}]

  • {major} = Major structural code changes and/or incompatible API changes (ie. breaking changes).
  • {minor} = New functionality was added or improved in a backwards-compatible manner.
  • {bugfix} = Backwards-compatible bug fixes or small improvements.
  • {stage}.{level} = Pre-production release: dev < a (alpha) < b (beta) < rc (release candidate).

Repositories

Changelog / Release Notes

Version 1.13.1 (2023/11/19)

  • New Features
    • None.
  • Improvements
    • Added check for empty $html argument.
  • Bugfixes
    • None.
  • Developer Notes
    • None.
  • Requires At Least
    • PHP v7.4.33.
    • WordPress v6.0.