I am trying to use plain text token replacements and paragraph tag and newline is being added to the output. These tags are not being added to php replacements.

This can be seen in the demo column when viewing the custom tokens:

plain text replacement - extra tag added

<td><p>3.00</p>
</td>

php replacement - correct
<td>3.00</td>

Comments

gaspaio’s picture

Category: support » bug
Status: Closed (fixed) » Fixed

You are using the "plain text" text format right ? Look at the filters associated with this format and you'll probably find "Convert line breaks into HTML" and "Convert URLs into links".

That is the default drupal configuration.
You'll most likelly want to create a true plain text filter for creating custom plain text tokens.

gaspaio’s picture

Issue summary: View changes

newline is added also

gaspaio’s picture

Category: bug » support
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

Status: Fixed » Closed (fixed)

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

forestgardener’s picture

Thanks for the tip about the plain text filter gaspaio.