Greg,
Thanks for the bug report. I am going to release a new version that should fix the issue for sub's without params (the second part of your report).
The first part is a bit trickier. I've added tests to show the problem, and I have a fix in mind. Unfortunately, it will take more time than I have at the moment. I'm thinking of changing the way modified subs are identified. Instead of adding "# SUB_1" after the declaration, I'd like to explore changing the sub name. That could greatly simplify things. I'll update when I've had time to explore.
-Mark
On Wed Aug 12 18:44:11 2015, OSCHWALD wrote:
Show quoted text> When using the latest version of this module and perltidy, the
> signature of single line subroutines are stripped out in some
> instances. For instance:
>
> sub test ($param) {$param->this->is->a->test->that->breaks-
> >perltidysweetened}
>
> is tidied to:
>
> sub test {
> $param->this->is->a->test->that->breaks->perltidysweetened;
> } #__SUB 0
>
> Even when there is no signature present, there is the related issue of
> the `#__SUB <n>` being added to the file.
>
> Greg