FirePHP: supporting newlines inside a table cells
Hi,
some times ago I discovered FirePHP, a small plugin for Firebug which provides server-side logging features. In a few words, you can use Firebug for logging data inside a php script. It’s a very useful plugin and the author, Christoph Dorn, made a very good job.
I use this plugin with PHP inside a Zend Framework project and with Python inside a Pylons project (yes, I wrote the python server side library by myself).
A few days ago I needed to profile queries executed by SqlAlchemy and I was using FirePHP’s table feature, something like Zend_Db_Profiler_Firebug for those who know it, but I encountered a big problem.
Some of these queries were very very long and I didn’t like the way FirePHP used to wrap lines inside cells. After some googling, I found an issue and a forum page on FirePHP website about using \n or \r to wrap a line inside a cell, but unfortunately this feature isn’t available yet.
So, I wrote a small patch for supporting newlines inside a table cell.
This patch isn’t applied in official FirePHP sources yet, but if you are interested, I attached a diff file in the issue page:
http://code.google.com/p/firephp/issues/detail?id=30
and in the forum page:
http://n2.nabble.com/Use-%5Cr%5Cn-in-FirePHP%3A%3ATABLE-td1086966.html#a1678152
so you can patch your local installation of FirePHP by yourself.
Bye!
EDIT: My girlfriend beat me up and corrected a lot of mistakes… I’m still a dummy with English





My girlfriend beat me up and corrected a lot of mistakes… I’m still a dummy with English
LOL!
Hello webmaster
I would like to share with you a link to your site
write me here preonrelt@mail.ru