Pages: 1
RSS
Macro to delete line feed / carriage return?
 
Is there a macro to delete extraneous line feeds or carriage returns in templates?  For example, I like to have a %BCC="abc@xyz.com" macro at the top of a template (for quick reference), but doing so inserts a blank line.  (I realize I could place it at the bottom, but it bugs me to know the extra line is still there.)  I'm guessing there must be a macro that strips out line feeds, but I haven't been able to locate one.

Thanks.
 
Use %- at the end of the line
%BCC="abc@xyz.com"%-
will insert your bcc header without an empty line.

Another example
Hello %-
Everybody,
will give you
Hello Everybody,

When don't you place the %- macro at the end of the line, it will be ignored:
My name is %-Roelof
results in:
My name is Roelof
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
Perfect.  Thanks so much.
Pages: 1