diff --git a/scriptLib.pas b/scriptLib.pas index 09efc16..a6663ff 100644 --- a/scriptLib.pas +++ b/scriptLib.pas @@ -67,6 +67,8 @@ s:=''; if ts then s:='
'+dateTimeToStr(now())+CRLF; s:=s+#13'
'+htmlEncode(textIn)+'
'+htmlEncode(textOut)+'
'; +if sizeOfFile(MACROS_LOG_FILE) = 0 then + s:=HEADER+s; result:=appendTextFile(MACROS_LOG_FILE, s); end; // macrosLog