Author Topic: better formatting  (Read 265 times)

jcfuller

  • Sr. Member
  • ****
  • Posts: 268
    • View Profile
better formatting
« on: October 20, 2020, 11:20:29 AM »
Kevin,
  I know you are working on formatting so I show one here I don't like with xFor. From example 1 in the help file.
James

Code: [Select]
XFOR j = 0 WHILE j <= n BY j++
    buffer[j] = 0
XNEXT

Code: [Select]
  for(j=0;j<=n
;j++)
    {
      buffer[j]=0;
    }


MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 714
    • View Profile
Re: better formatting
« Reply #1 on: October 20, 2020, 01:49:29 PM »
That is REALLY ugly ... I'll try to track it down.

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 714
    • View Profile
Re: better formatting
« Reply #2 on: October 20, 2020, 03:03:08 PM »
I found the cause. 

Change the bottom of SUB EmitIfCond   to the following:


  IF iOutputMethod = ePart THEN
    FPRINT Outfile, IF_Stmt_Buffer$;   ' MrBcx 761 -- Fixup XFOR formatting
  ELSE

    FPRINT Outfile, IF_Stmt_Buffer$    ' MrBcx 757 -- This replaced FPRINTs in prior versions
  END IF

END SUB ' EmitIfCond

jcfuller

  • Sr. Member
  • ****
  • Posts: 268
    • View Profile
Re: better formatting
« Reply #3 on: October 20, 2020, 04:32:41 PM »
Much Better!