Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Carp-Always-Color CPAN distribution.

Report information
The Basics
Id: 81359
Status: resolved
Priority: 0/
Queue: Carp-Always-Color

People
Owner: Nobody in particular
Requestors: sharyanto [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: does not default to HTML
This behavior: if (-t *STDERR) { require Carp::Always::Color::Term; } else { require Carp::Always::Color::HTML; } results in ugly HTML code like this: % perl script.pl 2>&1 | less <span style="color:#800">Died</span> at ... ... called at ... I think HTML output should only be used if we're detecting outputing to browser, e.g. through $ENV{GATEWAY_INTERFACE} or some such. And also ideally there should be an option to force one of the formatting.
FYI, repo forked and github pull request submitted. https://github.com/doy/carp-always-color/pull/1
This was fixed in 0.07.