Revision: 1007 Author: teawater Date: Sat Mar 31 07:07:09 2012 Log: Update format of html http://code.google.com/p/kgtp/source/detail?r=1007 Modified: /trunk/add-ons/hotcode.py ======================================= --- /trunk/add-ons/hotcode.py Sat Mar 31 06:51:04 2012 +++ /trunk/add-ons/hotcode.py Sat Mar 31 07:07:09 2012 @@ -85,8 +85,12 @@ global html_idfd.write('''<tr><td style="text-align: center;" colspan="2">Hot functions list</td></tr>''')
hotcode_list_to_output_html_fd_1(hlist[0], hlist[3], fd) + fd.write('''<tr><td style="text-align: center;" colspan="2"></td></tr>''') +fd.write('''<tr><td style="text-align: center;" colspan="2">Hot file list</td></tr>''')
hotcode_list_to_output_html_fd_1(hlist[1], hlist[4], fd) + fd.write('''<tr><td style="text-align: center;" colspan="2"></td></tr>''') +fd.write('''<tr><td style="text-align: center;" colspan="2">Hot line list</td></tr>''')
hotcode_list_to_output_html_fd_1(hlist[2], None, fd) @@ -110,8 +114,10 @@ --> </script></head> <body>-<div style="text-align: center;">This file is generated by KGTP (<a href="http://code.google.com/p/kgtp/";>http://code.google.com/p/kgtp/</a>)</div> +<div style="text-align: center;">This file is generated by KGTP (<a href="http://code.google.com/p/kgtp/";>http://code.google.com/p/kgtp/</a>).</div> <div style="text-align: center;">Click the function name or file name to see the detailed info.</div>''')
+ if show_line_number > 0:+ fd.write('''<div style="text-align: center;">Just show top 20 of each list.</div>''')
if no_task: fd.write('<br><br>')fd.write('''<table style="margin-left: auto; margin-right: auto;" border="1" cellpadding="2" cellspacing="0"><tbody>''')