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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pete B’s picture

Status: Active » Needs review
FileSize
505 bytes

Patch!

Jose Reyero’s picture

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