[Catalyst] Horizontal scrollbar on debug screen

Will Hawes info at whawes.co.uk
Wed Nov 30 10:48:11 CET 2005


Sebastian Riedel wrote:
> 
> Am 30.11.2005 um 00:47 schrieb Sebastian Riedel:
> 
>>
>> Am 29.11.2005 um 16:59 schrieb Will Hawes:
>>>
>>> Caveat - just discovered that this change means that output from 
>>> Data::Dumper gets crammed onto one line and isn't very readable. So a 
>>> bit of work needs to be done on the error message:
>>>
>>> $error =~ s/\n/<br\/>/g;
>>> $error =~ s/\B\s\B/&nbsp;/g;
>>>
>>>
>>> The above formats the error message nicely without reintroducing the 
>>> scrollbar. HTH.
>>
>> Are you sure?
>> It looks fine in Safari and Firefox.
> 
> Oh wait, you use $c->error to display dumper output?

It was as a result of die()ing inside a controller method rather than 
using $c->error directly. But maybe the result is the same?




More information about the Catalyst mailing list