Hi,
"Number" type variables are wrapped in < pre > tags when used as variables because they don't set a format callback. It seems to me that we can just reuse variable_format_string here. See also: #1559674: String type variables being wrapped with <pre></pre> tags when displayed with tokens
Patch to follow.
Thanks,
Pete
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1937386-format_numeric_variables-02.patch | 1.01 KB | jose reyero |
| #1 | variable-add-format-for-numbers-1937386-1.patch | 505 bytes | Pete B |
Comments
Comment #1
Pete B commentedPatch!
Comment #2
jose reyero commentedRight, we need some formatter, though that's not the best solution, will fail for 0 (zero) value, etc......
I think we should add something better, give a try to this one.
Comment #3
jose reyero commentedCommitted, I want to put out a new release soon.
Comment #4.0
(not verified) commentedMade the pre tag visible