Problem/Motivation

In SPIP, ~ can be used to add a non-breaking space.
This module currently does not handle this.

Steps to reproduce

Import a SPIP article containing something like this:

«~Hello~»

Proposed resolution

I suppose a plugin doing something like str_replace('~', ' ', $text) could be enough (unless this character can have another meaning in SPIP depending on context?).

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

prudloff created an issue. See original summary.

s3b0un3t’s picture

Hi @prudloff

I never had this use case on several SPIP that I’ve migrated.

I think the legacy site uses a contributed SPIP plugin or a custom development.
The SPIP Rich Text use a Drupal manager. You can extend it with your custom plugin to do the replace that you want.

You can contact me by Slack (Drupal or Drupal FR) if you want.

prudloff’s picture

This is documented here: https://contrib.spip.net/Les-raccourcis-typographiques-en-standard-avec-...

We did write a custom plugin for our use case but I thought it could be useful for other people using this module.

s3b0un3t’s picture

Don't hesitate to suggest a patch or a merge request. 😉👍

If you are on slack i contact you tomorrow to discuss on this subject and decide to the feature solution to embed.

s3b0un3t’s picture

Status: Active » Needs review

Thank you for your MR. I check it as soon as possible.

prudloff’s picture

The SpipRichTextTest failure seems to be unrelated: #3574952: SpipRichTextTest failure

s3b0un3t’s picture

Thanks for the fix ! 😅👍

s3b0un3t’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.