Skip Menu |

This queue is for tickets about the Perl-Tidy CPAN distribution.

Report information
The Basics
Id: 69396
Status: resolved
Priority: 0/
Queue: Perl-Tidy

People
Owner: Nobody in particular
Requestors: florent.angly [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 20101217
Fixed in: (no value)



Subject: Formatter suggestions
Hi, I have found the Perl::Tidy formatter very handy for a task I had to do. I know that the documentation for the formatter is not complete yet. As a matter of fact, domething that should probably addded in the documentation and that took me a long time to figure out is the following: if the user defines a formatter, the destination option is ignore; there is no output stream and the formatter has to implement code to write the formatted output. I do not see why it should be so. So, going further, it would be excellent to have a print() method for the formatter's use that would automatically know where to print! Thanks, Florent
It would be very difficult to implement a general print method because the output depends very much on the formatter, and can involve multiple output streams. For example the html formatter may write a large number of files from one input stream.