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
Issue fork migrate_spip-3574081
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
Comment #2
s3b0un3tHi @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.
Comment #3
prudloff commentedThis 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.
Comment #4
s3b0un3tDon'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.
Comment #6
s3b0un3tThank you for your MR. I check it as soon as possible.
Comment #7
prudloff commentedThe SpipRichTextTest failure seems to be unrelated: #3574952: SpipRichTextTest failure
Comment #8
s3b0un3tThanks for the fix ! 😅👍
Comment #9
s3b0un3t