Pages: 1
RSS
Annoying space appearing in template
 
Hello

I've started seeing a space being inserted on the first line of my forwarding template. Not a big deal, but I don't understand where it's coming from. I haven't changed anything for years (aside from upgrading to v4.0.24).

The forward template is:
Code
%qinclude("Clean Subject")%-
%Cursor
This is a forwarded message:
________________________________________________________________________________
    From: %OFromName | %OFromAddr
    Date: %ODateEn %OTimeLongEn                          %IF:'%OTOLIST'<>'':'
      To: %_RL_Text="%OTOLIST; "%QINCLUDE="recipient driver"' %IF:'%OCCLIST'<>'':'
      Cc: %_RL_Text="%OCCLIST; "%QINCLUDE="recipient driver"' %IF:'%OBCCLIST'<>'':'
     Bcc: %_RL_Text="%OBCCLIST; "%QINCLUDE="recipient driver"'
Subject: %FullSubj
________________________________________________________________________________
%text


and my "Clean Subject" is:
Code
%_______%REM="clean subject - by daniel hahler"%________%-
%_oldSubj=%OSubj%-
%Subject="%-
%SetPattRegExp='(?ix)\A:?
( [([]+ .*? [)\]]+ )*\s* # save topic/listname
(?:
  (?:
   (?:aw|antw|antwort|betrifft|fw|fwd|forw|
    forward|ha|rcpt|re\^?\d*|sv|vs|wg|wtr)(?:\[\d*\])?:
  )
  |\s+
)*
(.*?)  # the subject
\s*
(
([(\[]+
  ( (wa[rs][:; ] | pgp | s/mime ).*
   | fwd
  )
  [)\]]*\s*
)*
)\z'%-
%RegExpBlindMatch='%OSubj'%-
%IF:#%SubPatt='1'#<>##:#%SubPatt='1'#%-
Re: %SubPatt='2'"%-
%Cursor


Can anyone see what would leave a single space at the front of the top line?

TIA,

N.
 
You have %Cursor macro twice, first at end of QT and second in forward template.
 
Ugh.

Thanks for a) spotting it and b) choosing not to mock!

--
N.
Pages: 1