﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
848	Tidy.exe - enhancement to '/rel   : Remove empty lines from the source.' parameter	Bowmore		"It would be nice if the Tidy.exe parameter

'''/rel   : Remove empty lines from the source.'''

could have an optional flag 0|1 
/rel 0 (default) would work as it currently does and remove all empty lines.

/rel 1 would reduce consecuative lines containing only whitespace to a single empty line. I believe that this will help to make the code more readable by removing excessive whitespace but leaving it where the author intended.

Example:
Running Tidy on the following code with proposed /rel 1 parameter
{{{
  ;--------------------------------------------
  $g_sTestRun = GUICtrlRead($GUI_edtTestRun)




  If $g_sTestRun = """" Then
    $iMsgBoxAnswer = MsgBox(53, ""Warning"", $sMessage)
    Switch $iMsgBoxAnswer
      Case 4 ;Retry
        Return
      Case 2 ;Cancel
        Exit
    EndSwitch
  EndIf


  $g_sTestCase = GUICtrlRead($GUI_edtTestCaseId)

  If $g_sTestCase = """" Then
    $iMsgBoxAnswer = MsgBox(53, ""Warning"", $sMessage)
    Switch $iMsgBoxAnswer
      Case 4 ;Retry
        Return
      Case 2 ;Cancel
        Exit
    EndSwitch
  EndIf
  ;--------------------------------------------
}}}
would produce the following output.
{{{
  ;--------------------------------------------
  $g_sTestRun = GUICtrlRead($GUI_edtTestRun)

  If $g_sTestRun = """" Then
    $iMsgBoxAnswer = MsgBox(53, ""Warning"", $sMessage)
    Switch $iMsgBoxAnswer
      Case 4 ;Retry
        Return
      Case 2 ;Cancel
        Exit
    EndSwitch
  EndIf

  $g_sTestCase = GUICtrlRead($GUI_edtTestCaseId)

  If $g_sTestCase = """" Then
    $iMsgBoxAnswer = MsgBox(53, ""Warning"", $sMessage)
    Switch $iMsgBoxAnswer
      Case 4 ;Retry
        Return
      Case 2 ;Cancel
        Exit
    EndSwitch
  EndIf
  ;--------------------------------------------
}}}"	Feature Request	closed	Future Release	Other		None	Completed	Tidy.exe	
