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

Comments

Pete B’s picture

Status: Active » Needs review
StatusFileSize
new505 bytes

Patch!

jose reyero’s picture

StatusFileSize
new1.01 KB

Right, 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.

jose reyero’s picture

Status: Needs review » Fixed

Committed, I want to put out a new release soon.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Made the pre tag visible