Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1817 closed Bug (Fixed)

Tidy incorrectly formats an objects parenthesis

Reported by: JamesBrooks Owned by: Jos
Milestone: Future Release Component: SciTE4AutoIt
Version: 3.3.6.1 Severity: None
Keywords: tidy, parenthesis Cc:

Description

When you run Tidy on functions on a function like this:

Func Test ( $ioParam, $ioIn, $ioOut )
   ; Blah
EndFunc

It will get converted to

Func Test($ioParam, $ioIn, $ioOut)
   ; Blah
EndFunc

Notice the spaces between the parenthesis have now gone?

The same also applies for parenthesis in equations or when a function is called.

The only time the difference occurs is when using an objects property.

Tidy outputs this:

StringStripWS(.Fields("Version" ).Value, 8) 

When it should be:

StringStripWS(.Fields("Version").Value, 8) 

The space after the Version string is removed.

Perhaps I am being too pedantic but it's an inconsistency which has bothered me greatly for some time.

Attachments (0)

Change History (2)

comment:1 by Jos, 15 years ago

Resolution: Fixed
Status: newclosed

Fixed in Tidy version 2.2.0.9 available in the Beta directory.

comment:2 by TicketCleanup, 15 years ago

Milestone: Future Release

Automatic ticket cleanup.

Modify Ticket

Action
as closed The owner will remain Jos.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.