Closed (won't fix)
Project:
Token Filter
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 May 2009 at 15:14 UTC
Updated:
8 Feb 2010 at 22:49 UTC
I try to display something like
key=[token token_custom token_custom_key]
where token_custom_key=print '123456';
I get
key= 123456
instead of
key=123456
Comments
Comment #1
Morn commentedreplacing in token_filter.module, line 34:
against
seems to work for me
Comment #2
pvhee commentedI don't have the problem you are mentioning, but I am not sure what you mean with "where token_custom_key=print '123456';".
I have implemented a token value in my custom.module:
I enabled the token_filter in the Full HTML Input Format, and used
which renders in the body like
without any blank character prepended.
Comment #3
pvhee commentedstatus set to wontfix until further notice
Comment #4
sajosh commentedI have the same problem on a Drupal 5.7 site. A blank is prepended on the user tokens but not on the global ones. I use this filter on the Full HTML input format.
So I replaced the $output as Morn shows in comment #1. This removed the space for user user and uid but created another problem. It doesn't convert the following ...
[token global site-url]
[token global user-name]
[token global user-id]
[token global user-mail]
[token global user-url]
[token global site-name]
[token user user-raw]
These are the only ones I tested. This is a nice module and a solution to this problem would be very helpful.
Comment #5
pvhee commentedI am not actively maintaining the Drupal 5 branch of this module. If you provide a patch, I will commit it. For the moment, I am closing this issue.