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.

Change History (2)

comment:1 Changed 15 years ago by Jos

  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in Tidy version 2.2.0.9 available in the Beta directory.

comment:2 Changed 15 years ago by TicketCleanup

  • Milestone set to Future Release

Automatic ticket cleanup.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.