Prefix and suffix on numeric fields do not allow to add spacing

Created on 1 August 2012, almost 12 years ago
Updated 27 September 2023, 9 months ago

Note: this is a follow up of issue #483474: Help text for number suffix doesn't make spacing clear → for the 6.x CCK module, though IMO this is not a documentation issue, but an incorrect implementation.

The prefix and suffix on numeric fields:
- do not add spaces
- do not allow to add spacing (e.g. by enclosing it in a span)
- do not document this in the help text, they even suggest it otherwise: Separate singular and plural values with a pipe ('pound|pounds'). With this help text the result will be the unexpected 1pound resp. 5pounds.

Workaround:
Add spaces yourself, but doing so will turn this issue into a translator's gotcha.

Because of the translation issues, I think that this should be solved in code by adding a span around the prefix and suffix.

✨ Feature request
Status

Needs work

Version

9.5

Component
Field  →

Last updated about 12 hours ago

Created by

🇫🇷France fietserwin Le Mont-Dore

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024