Format profile-data into "nice" HTML ?

Bengt Richter bokr at oz.net
Mon Mar 18 19:01:50 EST 2002


On Mon, 18 Mar 2002 19:53:28 GMT, "Thomas Weholt" <thomas at weholt.org> wrote:

>Posting a notice to let the group know of my very early and very simple
>attempt at html-formatting on output from the profile/pstats-module.
>
>The module is available at http://home.online.no/~t-weh/releases/hspstats.py
>and a preview of the output is available here
>http://home.online.no/~t-weh/releases/prf.html
>
>Please let me benefit from comments and improvements ( there are room for
>plenty :-) ) by sending me a mail etc.
>
>Best regards,
>Thomas Weholt
>
>
Hi,
I didn't post this. I happened to look at the source of your example HTML.
It isn't required for HTML format, but if you start your <tr ...> rows
on new lines it will be easier to read in source. You may find it useful
even if no one else sees it.

Nice look, however old Netscape will sometimes not show empty table cells
properly unless you at least put a non-breaking space (  IIRC) in them.
Plain blanks between <td> and </td> won't do it.

I didn't look at your program yet. I think you will enjoy Python. Have fun.

Regards,
Bengt Richter





More information about the Python-list mailing list