Hi,

the problem is the following lines :
 Code:
If $Cp > 85 And InStr(Chr(9) + Chr(32) + ',+-/*', $C)
  $Line =  $Indent + SubStr($Line, $Cp)	; reset the line
  $Ll = Len($Line)
  $Cp = 0				; and the pointer
  $OBuf = $OBuf + @CRLF		; break the line here
EndIf


if I comment theses lines, the result is correct.
may be it is not a good thing to break a line after the 85th column !!!

first, if the line is commented (or end of line), new line should be commented.
second, when the line is broken, the last character is repeated at the beginning of the new line. Example :
 Code:
$OutBuffer = $OutBuffer + Join(Split(Join(Split(Join(Split(Join($SrcTxt,@CRLF),$1),'&'),$2),$Lc),$3),$Tc)
is broken in
 Code:
$OutBuffer = $OutBuffer + Join(Split(Join(Split(Join(Split(Join($SrcTxt,@CRLF),$1),'&'),
  ,$2),$Lc),$3),$Tc)


may be should replace the line
 Code:
$Line =  $Indent + SubStr($Line, $Cp)	; reset the line
with
 Code:
$Line =  $Indent + SubStr($Line, $Cp+1)	; reset the line


i think that when the line is broken, the last character has already been added to $OBuf so it doesn't need to be added to $line.
_________________________
Christophe