[Openvas-commits] r6299 - in trunk/openvas-manager: . src
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Jan 4 14:48:58 CET 2010
Author: felix
Date: 2010-01-04 14:48:57 +0100 (Mon, 04 Jan 2010)
New Revision: 6299
Modified:
trunk/openvas-manager/ChangeLog
trunk/openvas-manager/src/omp.c
Log:
In PDF report, enabled page-breaks in result overview table.
* src/omp.c (print_report_latex): Use longtable environment instead of
tabularx environment when printing the result overview table.
Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog 2010-01-04 13:34:54 UTC (rev 6298)
+++ trunk/openvas-manager/ChangeLog 2010-01-04 13:48:57 UTC (rev 6299)
@@ -1,5 +1,12 @@
2010-01-04 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+ In PDF report, enabled page-breaks in result overview table.
+
+ * src/omp.c (print_report_latex): Use longtable environment instead of
+ tabularx environment when printing the result overview table.
+
+2010-01-04 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
Fixed bug that could result in endless loops in pdf report generation.
* src/omp.c (next_break): Corrected position of remembered last space
Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c 2010-01-04 13:34:54 UTC (rev 6298)
+++ trunk/openvas-manager/src/omp.c 2010-01-04 13:48:57 UTC (rev 6299)
@@ -3276,13 +3276,23 @@
/* Print the list of hosts. */
- fprintf (out,
- "\\section{Result Overview}\n"
- "\n"
- "\\begin{tabularx}{\\textwidth * 1}{|l|X|l|l|l|l|}\n"
- "\\hline\n"
- "\\rowcolor{openvas_report}"
- "Host&Most Severe Result(s)&Holes&Warnings&Notes&False Positives\\\\\n");
+ fprintf (out, "\\section{Result Overview}\n\n");
+ fprintf (out, "\\begin{longtable}{|l|l|l|l|l|l|}\n");
+ fprintf (out, "\\hline\n"
+ "\\rowcolor{openvas_report}"
+ "Host&Most Severe Result(s)&Holes&Warnings&Notes&False Positives\\\\\n"
+ "\\hline\n"
+ "\\endfirsthead\n"
+ "\\multicolumn{6}{l}{\\hfill\\ldots continued from previous page \\ldots}\\\\\n"
+ "\\hline\n"
+ "\\rowcolor{openvas_report}"
+ "Host&Most Severe Result(s)&Holes&Warnings&Notes&False Positives\\\\\n"
+ "\\endhead\n"
+ "\\hline\n"
+ "\\multicolumn{6}{l}{\\ldots continues on next page \\ldots}\\\\\n"
+ "\\endfoot\n"
+ "\\hline\n"
+ "\\endlastfoot\n");
init_host_iterator (&hosts, report);
while (next (&hosts))
@@ -3325,7 +3335,7 @@
// FIX 0 (false positives)
"Total: %i&&%i&%i&%i&0\\\\\n"
"\\hline\n"
- "\\end{tabularx}\n"
+ "\\end{longtable}\n"
"\n"
"\\section{Results per Host}\n"
"\n",
More information about the Openvas-commits
mailing list