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

Created on 1 August 2012, over 12 years ago
Updated 27 September 2023, about 1 year 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 7 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.71.5 2024