space removal problem - 18/06/07 09:45 AM
I use this code to return timestamp in my theme:
and it woking just fine as long as timestamp is enabled, how ever if i disable timestamp, then i get a space i want to be removed.
Example:
[11:36] ° Nick testar
No space infront of [11:36]
how ever if i disable timestamp it looks like
Example:
° Nick testar
You see the space, and i cant return $+ to remove it.
So how do i solve this?
;------- Edit
%tleft [
%right ]
%tsform mm:nn
so you see the %var's i use.
Code:
alias tstmpt { if (%tstmp == 1) { return %tleft $+ $time( $+ %tsform $+ ) $+ %tright } }
and it woking just fine as long as timestamp is enabled, how ever if i disable timestamp, then i get a space i want to be removed.
Example:
[11:36] ° Nick testar
No space infront of [11:36]
how ever if i disable timestamp it looks like
Example:
° Nick testar
You see the space, and i cant return $+ to remove it.
Code:
alias tstmpt { if (%tstmp == 1) { return %tleft $+ $time( $+ %tsform $+ ) $+ %tright } if (%tstmp == 0) { return $+ } }
So how do i solve this?
;------- Edit
%tleft [
%right ]
%tsform mm:nn
so you see the %var's i use.