Hallo Nick,

On Wed, 26 Feb 2003 10:51:05 +0000GMT (26-2-03, 11:51 +0100, where I
live), you wrote:

>> %SUBPATT="1"%-'
>> %CAPITAL='%OFromFName',

As Jonathan wrote, make it '%- after the last sunpatt instead of %-'
After all I wrote that there might be better solutions. ;-)

ND>  - why this happens and how I can fix it?

The why takes some more lines.
TB macros are placed in the text body. Some are intended to insert
some text and they do so.
However, some are intended to change a header or something immaterial
like a quotestyle. In those cases TB uses the macro and, since it's
placed in the message body, tries to compute the text that needs to be
inserted. Since there is no text to be inserted, there's only the new
line at the end of the macro. So TB inserts a new line.
There are four ways to negate this effect:
1) Place something that generates some text immediately behind the
   macro. When there's no new line in your template, TB won't place
   one. This way has two major disadvantages:
   a) It diminishes your template's readability (esp with complex macros)
   b) When your macro doesn't end with a quotation mark or when the
      text generating string isn't a macro itself, the macro won't be
      recognized by TB ("%singlereHi All," will be treated different than
      "%singlere
       Hi All")
2) Place the macro at the end of your template. Any white lines at the
   end of the message will be skipped by TB. Won't work for all
   macros, since for some of them the sequence they're encountered has
   some meaning.
3) Place them someplace where you'd like a blank line, this might not
   always be possible and it diminishes readability.
4) Use the %- macro. It does nothing except negating the new line
   immediately after it. It can also be used in the middle of complex
   macros to break them down to different lines to keep track on what
   you're doing. Note that it has to be the last thing on the line to
   do it's thing.

ND>  - can I set a global QuoteStyle as I see no reason not to use
ND>  this everywhere?

Ypu can set global quotestyles, but those options don't include
complex regexp. You can place the macro into your account reply
template, so it will be used everywhere unless you select a specific
template to be used.

-- 
Groetjes, Roelof


________________________________________________
Current version is 1.62 | "Using TBUDL" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to