|Subject:||Error with combination -scbb -csc in versions 20200110, 20200619, and 20200822|
|From:||perltidy [...] users.sourceforge.net|
A significant problem arises when the parameter combination -scbb -csc is used in versions 20200110-20200822. Please upgrade to version 20200907, which was released today. What happens is that when two consecutive lines with isolated closing braces had new side comments generated by the -csc parameter, a separating newline was missing. The resulting script will not then run, but worse, if it is reformatted with the same parameters then closing side comments could be overwritten and data lost. This problem was found during automated random testing. The parameter -scbb is rarely used, which is probably why this has not been reported. This issue has also been reported at github #37.